GithubHelp home page GithubHelp logo

azure-samples / active-directory-javascript-graphapi-web-v2 Goto Github PK

View Code? Open in Web Editor NEW
8.0 45.0 6.0 20 KB

A Javascript application that uses a third party OAuth library(hello.js) to sign in users and gets an access token for the Microsoft Graph.

JavaScript 27.47% HTML 72.53%

active-directory-javascript-graphapi-web-v2's Introduction

Vanilla JavaScript SPA using Microsoft Identity Platform to Sign-in Users and Call Microsoft Graph API


There's a newer version of this sample taking advantage of the Microsoft Authentication Library for JavaScript.

Check it out here: active-directory-javascript-graphapi-v2

If you really need a sample that uses the hello.js library for authentication, you can navigate to the master branch, but please know that it's no longer supported.

active-directory-javascript-graphapi-web-v2's People

Contributors

andretms avatar danieldobalian avatar derisen avatar jmprieur avatar navyasric avatar priyamohanram avatar rwike77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

active-directory-javascript-graphapi-web-v2's Issues

AADSTS50011 The reply url specified in the request does not match the reply urls configured for the application

I've tried the sample with two different apps that I setup. I've gone through all the settings multiple times and ensured they are right but can't get it to work. Keep getting this error after signing in.

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application

It talks about a "reply URL". Is that the redirect URL? I set it to http://localhost:30662 as instructed.

api() calls wont work

1.) from my point of view the base url of Microsoft Graph-API is wrong.
it should be: 'https://graph.microsoft.com/v1.0/' isn't it.

2.) the access_token for api() calls added as query parameters instead of request header "Authorize Bearer".
How can i change this?

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.