How can I implement ADFS to login to my custom domain in mobile app using React native?

Rishabh Kaushik 0 Reputation points
2023-07-12T09:49:59.34+00:00

I want to implement ADFS SSO to login to my custom domain in mobile app. For the authentication I use react native platform. I have tested AppAuth and MSal for that but it didn't give me the conclusion to establish ADFS service on my mobile app. I entered the required parameters like client_id, tenant id, redirect_uri, scope, grant_types and all that needed., but it didn't provide me the access_token and I could not find an option to open the app for further SSO. There is no documentation provided to handle this implementation. Help me to achieve the ADFS in to my mobile app to redirect my custom uri using react native.

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-07-17T14:57:58.78+00:00

    @Rishabh Kaushik

    Thank you for posting your query on Microsoft Q&A.

    Thank you for posting your query on Microsoft Q&A.

    From above description I am able to find that you are looking for ways to configure SSO on you MSAL integrated mobile application.

    • MSAL.NET supports connecting to Azure AD, which signs in managed-users (users managed in Azure AD) or federated users (users managed by another identity provider such as AD FS). MSAL.NET does not know about the fact that users are federated. As far as it’s concerned, it talks to Azure AD.

    The authority you use in this case is the usual authority (authority host name + tenant, common, or organizations).

    There are two ways for applications using MSAL for Android to achieve SSO:

    1. Through a broker application
    2. Through the system browser

    It's recommended to use a broker application for benefits like device-wide SSO, account management, and conditional access. However, it requires your users to download additional applications. You would be needed to Integrate your app with a broker

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.