Custom login page react-native application for Azure Ad authentication End Point

Sultan Dilawar Ali 1 Reputation point
2021-02-03T08:59:32.97+00:00

Basically my requirement is to build the custom login page for authenticate user, where user will enter his user and password and we will make some call to Azure to authenticate, authorisation and then public profile with graph api.
i have seen demo application which uses a auth lib for authentication but i want custom login page
https://learn.microsoft.com/en-us/graph/tutorials/react-native
so, is it possible ?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,567 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2021-02-03T14:31:20.703+00:00

    Hello @Sultan Dilawar Ali , the sample you shared is using react-native-app-auth package for managing the authentication and token management and this package supports Auth_Code grant flow in the backend. Now if you check the following section "https://learn.microsoft.com/en-us/graph/tutorials/react-native?tutorial-step=3" you would find the following:

    serviceConfiguration: {  
        authorizationEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',  
        tokenEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',  
     }  
    

    Here you would see that the sample is calling the /authorize endpoint of Azure AD which provides its own login page. You cannot make a lot of updates to this login page, as this is something coming directly from Azure AD. A certain degree of customization is possible and you can find the details here: https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/customize-branding#customize-your-azure-ad-sign-in-page

    Apart from this not much customization is possible.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as an Answer; if the above response helped in answering your query.