Search code examples
oauth-2.0azure-devopsazure-active-directory

How to allow all Outlook users to Use MS OAuth2


I have created one application where I am using MS oauth2. But It's allowing only my Azure AD user to use MS auth. I want to make it available for all outlook users. So what changes I need to made in manifest or any other file in Azure?

I am Getting below screen after login using any other outlook account:

enter image description here


Solution

  • What changes I need to made in manifest or any other file in Azure?

    It seems you are having trouble with [email protected] account while login azure portal tenant

    Error You Have Encountered :

    I have successfully reproduce your problem. See the screen shot below:

    enter image description here

    Reason Of Error:

    The email account you are trying to log in with. Is not exist on your current tenant.

    Resolution:

    Go to your tenant where you would like to add your example.outlook.com account to login into and follow below steps:

    1. Azure portal
    2. Azure Active Directory
    3. Users
    4. New Guest User
    5. Put Your [email protected] email
    6. Invite

    See the screen shot below:

    enter image description here

    Issue Solution and Test:

    After above steps I have successfully login with [email protected]. See the screen shot below:

    enter image description here

    Access Code:

    enter image description here

    Access Token With Code:

    enter image description here

    Decode Token:

    You can decode your token on https://jwt.io/

    See the screen shot below:

    enter image description here

    Note: Once you successfully add your example.outlook.com email account on your tenant you can get your token with login.