Azure Ad redirect Auth on FrontEnd via API

AYUSH SHARMA 21 Reputation points

If a frontend[Android App] hit a web API[spring boot] for sign in request and that request it invokes the Azure AD auth controller on that API which open the redirect url on browser for login, how to redirect/open a credential page on the front end [Mobile App] for login in response of this request.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,622 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,601 Reputation points Microsoft Employee

    @SharmaAyushNokiaINGurgaon-5163, Ideal process is that:

    1. First, a search is initiated in the internal application cache to check if there is an existing token (refresh-token) available that can be used. If its present, the MSAL4J goes ahead with that old token and silently gets a new token (access-token).
    2. If an old token is not found (in case of a fresh login by the user), MSAL4J goes ahead with the interactive login step where it provides a pop-up/redirect with the endpoint which is responsible for asking the user to interactively enter the username and password.

    You can refer to the following doc and the sample for better understanding:

    You can check the following docs for more information:

    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 Answer; if the above response helped in answering your query.