Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Self Service Portal filling in UPN prefix before Sign In

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I have an out of the box Self Service D365 Portal set up to authenticate with Azure AD. I'd like my users to enter their UPN prefix before clicking the Sign In button, as their UPN is in the format username@company.com, not email address and the sign in experience would be quite confusing. I have been able to capture the username and construct the authentication URL with the login_hint appended at the end. 

https://login.windows.net/{APPID}/oauth2/authorize?client_id={ClientID}&redirect_uri={URI}%2F&response_mode=form_post&response_type=code%20id_token&scope=openid%20profile&state=OpenIdConnect.AuthenticationProperties{???}&nonce={???}&login_hint=jsmith@company.com

The browser authenticates with Microsoft as when I click the out of the box Azure AD sign in button after clicking on the URL I generate above, it automatically logs me in without asking for credentials.

I've also tried doing an AJAX post of the values and using fiddler I can see the correct values for the query string above being returned, but then I get a CORS error and tried the recommendations on this post, but still no luck.

  1. Is there a way to get the Authentication Properties and Nonce values missing in the query string above?
  2. Is there an easier way to pass the login hint to Azure AD and ensure the Portal recognises the login?

SignIn.png

Thanks

  • LeoAlt Profile Picture
    LeoAlt 16,331 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans