web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans