Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ADFS Authentication for Mobile Application

Posted on by 150

can anyone suggest how to generate Client Id in MSCRM IFD Server to authenticate user from the Mobile application. The application is working for Online, but for IFD CRM the process is different, i tried some procedures but did workout for me.

Please help me on this. Thanks

*This post is locked for comments

  • Shiva.B Profile Picture
    Shiva.B 150 on at
    RE: ADFS Authentication for Mobile Application

    Hi Nitin,

    I have tried this, I am getting following issue with this steps

    IMG_5F00_16032018_5F00_130126_5F00_0.png

  • nitinagg16 Profile Picture
    nitinagg16 200 on at
    RE: ADFS Authentication for Mobile Application

    Please find below the reference :

    community.dynamics.com/.../enable-adfs-authentication-for-mobile-app

    Thanks

    Nitin

  • Shiva.B Profile Picture
    Shiva.B 150 on at
    RE: ADFS Authentication for Mobile Application

    Thank you for the reply Ryan,

    This is the event logs found in the Server.

    Encountered error during OAuth authorization request.

    Additional Data

    Exception details:
    Microsoft.IdentityServer.Web.Protocols.OAuth.Exceptions.OAuthUnauthorizedClientException: MSIS9321: Received invalid OAuth request. The client 'AAC05A8A-D74C-44BE-AD60-A5323B7A5D5A' is forbidden to access the resource 'https://auth.crmdev.com:444/'.
    at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthProtocolContext.ValidateScopes(String scopeParameter, String clientId, String relyingPartyId)
    at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationRequestContext.ValidateCore()
    Encountered error during federation passive request.

    Additional Data

    Protocol Name:
    OAuthAuthorizationProtocol

    Relying Party:
    https://ff.crmdev.com:444

    Exception details:
    Microsoft.IdentityServer.Web.Protocols.OAuth.Exceptions.OAuthUnauthorizedClientException: MSIS9321: Received invalid OAuth request. The client 'AAC05A8A-D74C-44BE-AD60-A5323B7A5D5A' is forbidden to access the resource 'https://auth.crmdev.com:444/'.
    at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthProtocolContext.ValidateScopes(String scopeParameter, String clientId, String relyingPartyId)
    at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationRequestContext.ValidateCore()
    at Microsoft.IdentityServer.Web.Protocols.ProtocolContext.Validate()
    at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.GetRequiredPipelineBehaviors(ProtocolContext pContext)
    at Microsoft.IdentityServer.Web.PassiveProtocolListener.EvaluateHomeRealm(PassiveProtocolHandler protocolHandler, ProtocolContext protocolContext)
    at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ADFS Authentication for Mobile Application

    Hi Shiva,

    When you connect to the mobile app is it not asking you for the IFD URL that you have set up? If you have that then the way you log in should be the same on both the online and mobile app. Do you have any logs or error screenshots you can post?

    Thanks,

    Ryan

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans