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 CRM (Archived)

Custom Authentication on the Dynamics CRM portal.

(0) ShareShare
ReportReport
Posted on by

Hi all,

Me and my team are working on a PoC for one of our customers. One of their requirements is to implement SSO which basically only returns the governmentid which we can use. 

My question is: Is there a way to use this governmentid for logging into the portal by searching the portal users? 

Thank you in advance!!!

Kind regards,

Dennis

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jeevarajan Kumar Profile Picture
    781 Most Valuable Professional on at

    Hi Dwijands,

    Are you planning to do a new implementation of SSO for Dynamics Portals? Or the customer already has an SSO designed for them and you need to reuse their data to provide access to the Dynamics Portal you are developing?

    In case of the first one, you can use the Azure AD-B2C - it's available from latest July release. Get more details about it, here.

    Or using AAD,  https://community.dynamics.com/crm/b/debajitcrm/archive/2017/06/12/dynamics-365-portal-authentication-with-external-identities-part-i-authentication-with-azure-active-directory

    Hope it helps.

  • Community Member Profile Picture
    on at

    Hi Kumar,

    Thank you for your answer. Unfortunately it is an existing SSO which only returns a governmentid. Do you see a way to use this governmentid to login to the portal based on the governmentid in the user entity?

    Your help is very much appreciated :)

    Kind regards,

    Dennis

  • Suggested answer
    JohnAnonymous Profile Picture
    5,241 on at

    I don't you can do this in a secure manner as you cannot write any server side code. Are you sure that they do not support something like OpenIDConnect?

  • Community Member Profile Picture
    on at

    Hi Martijn,

    We are using the latest on-premise version of the Portal so we are able to change server side code.

    To be more specific, we are looking at implementating DigiD. DigiD does support SAML but I don't believe we can use it to authenticate based on the governmentid.

    I have read about ASP.NET Identity Authentication (community.adxstudio.com/.../asp.net-identity-authentication) but don't see a way to find a user based on other fields. I only see the possibility to login via f.e. username and password and then add external logins (Facebook, Twitter, etc) to that user.

    Do you think it is possible to validate a user based on a search within the user table, like the FindByEmail within the OWIN framework?

    Cheers!

    Dennis

  • Verified answer
    JohnAnonymous Profile Picture
    5,241 on at

    If you are sure that the token you receive from DigidId is secure and can be trusted, you could store the 'governmentid' in the contact entity. And built your own logic to retreive the contact based on that id.

    You can implement your own version of ASP.net identity. E.g. I have used an open source version where the identity is not stored in SQL but in Table Storage. Maybe this post helps? stackoverflow.com/.../asp-net-identity-custom-usermanager-userstore

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans