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)

ADFS Authentication for Mobile Application

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Community Member Profile Picture
    on at

    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

  • Shiva.B Profile Picture
    150 on at

    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)

  • nitinagg16 Profile Picture
    200 on at

    Please find below the reference :

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

    Thanks

    Nitin

  • Shiva.B Profile Picture
    150 on at

    Hi Nitin,

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

    IMG_5F00_16032018_5F00_130126_5F00_0.png

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