Git Product home page Git Product logo

v2jsapp's Introduction

services platforms author
active-directory
javascript
jmprieur

Sign in Azure AD + MSA Users using Javascript Open Source Library

This sample demonstrates how to use the Microsoft Graph, while being authenticated with msal.js (doing oAuth 2.0 against the AAD v2.0 endpoint)

Steps to Run

  1. Register your Azure AD v2.0 app.

    • Navigate to the App Registration Portal.
    • Go to the the My Apps page, click Add an App, and name your app.
    • Set a platform by clicking Add Platform, select Web, and add a Redirect URI of http://localhost:8000/.
  2. Clone the code.

git clone https://github.com/jmprieur/v2jsapp.git
  1. Inside index.html, set your application/client id from the App Registration Portal.

  2. Run the web app for port 8000, and navigate to http://localhost:8000. If you have Python installed you can run the following command,

python -m SimpleHTTPServer 8000

Questions and Issues

Please file any questions or problems with the sample as a github issue. You can also post on StackOverflow with the tag azure-active-directory. For oAuth2.0 library issues, please see note above.

This sample was tested with hello.js v1.13.5, Google Chrome version 55.0, and macOS 10.11.

Acknowledgements

This sample was adapted from the hello.js sample: https://github.com/Azure-Samples/active-directory-javascript-graphapi-web-v2

v2jsapp's People

Contributors

danieldobalian avatar jmprieur avatar priyamohanram avatar shivbijlani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.