Can you log in through MSAL without having a webview (Android)

Kevin Trancoso 21 Reputation points
2022-09-26T08:17:25.163+00:00

Hello,

When signing in with MSAL on android, it opens a webview where you can type your login/password stuff.

I would like to know if it's possible to sign in to MSAL without using that webview and therefore send the login/password silently.

Regards,

Kevin.

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

Accepted answer
  1. Shweta Mathur 28,191 Reputation points Microsoft Employee
    2022-09-27T09:25:24.093+00:00

    Hi @Kevin Trancoso ,

    Thanks for reaching out.

    I understand you are looking to login without using webview.

    This can be achieved using Single sign-on (SSO) allows users to only enter their credentials once and have those credentials automatically work across applications. There are two ways for applications using MSAL for Android to achieve SSO:

    If application is using web view, then SSO can be achieved using system browser.

    If the application uses MSAL with a broker like Microsoft Authenticator or Intune Company Portal, then users can have a SSO experience across applications if they have an active sign-in with one of the apps using shared cookie.

    Reference : https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-android-single-sign-on#sso-through-system-browser

    Hope this will help.

    Thanks,
    Shweta

    ---------------------------------

    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

0 additional answers

Sort by: Most helpful