Azure-Samples / ms-identity-javascript-tutorial

A chapterwise tutorial that will take you through the fundamentals of modern authentication with Microsoft identity platform in Vanilla JavaScript.
https://aka.ms/aadv2
MIT License
126 stars 84 forks source link

What is personal Microsoft account #134

Closed finalcreator closed 1 year ago

finalcreator commented 1 year ago

Issue

https://github.com/Azure-Samples/ms-identity-javascript-tutorial/tree/main/1-Authentication/1-sign-in this page said:

This sample will not work with a personal Microsoft account. If you're signed in to the [Azure portal](https://portal.azure.com/) with a personal Microsoft account and have not created a user account in your directory before, you will need to create one before proceeding. What is personal microsoft account, what if I want to get access token for a user who can list the todo list?

Please provide us with the following information:

This issue is for the sample

    - [x] 1-1) Sign-in with Azure AD
    - [ ] 1-2) Sign-in with Azure AD B2C
    - [x] 2-1) Acquire a Token and call Microsoft Graph
    - [ ] 3-1) Protect and call a web API on Azure AD
    - [ ] 3-2) Protect and call a web API on Azure AD B2C
    - [ ] 4-1) Call a web API that calls Microsoft Graph on-behalf-of user
    - [ ] 4-2) Call a web API that calls another web API on-behalf-of user
    - [ ]   5) Deploy to Azure Storage and App Service

This issue is for a

    - [ ] bug report -> please search issues before submitting
    - [x] question
    - [ ] feature request
    - [ ] documentation issue or request

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

Library version

Browser and version

Chrome, Edge, Firefox, Safari?

Mention any other details that might be useful

Thanks! We'll be in touch soon.

salman90 commented 1 year ago

Hi @finalcreator, Personal Microsoft accounts include Outlook, OneDrive, Xbox LIVE, or Microsoft 365. Please check the following if you would like to add a Microsoft account to your Tenant.

Check calling a protected web API sample if you want to learn how to call a protected API with Vanilla JavaScript. You can change the API to a todo list or whatever API you would like to access. I recommend you look at the react and angular implantations they call a todo list API.

github-actions[bot] commented 1 year ago

This issue has not seen activity in 14 days. If your issue has not been resolved please leave a comment to keep this open. It will be closed in 7 days if it remains stale.

salman90 commented 1 year ago

@finalcreator I will be closing this due to inactivity.