An implementation of the Azure Active Directory OAuth 2.0 flow.
djluck / azure-active-directory Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the Azure Active Directory OAuth 2.0 flow.
License: Apache License 2.0
An implementation of the Azure Active Directory OAuth 2.0 flow.
License: Apache License 2.0
Hey @djluck, I think the userPrincipleName
keyword in AzureAd.whitelistedFields should actually be userPrincipalName
. I realized this after examining the graphUser object.
Is there a way to respect scope/permissions requests passed by the application via options.requestPermissions
?
For instance, in this google login example, the "scope" URL argument is passed to the dialog, asking for additional permissions from the end user: https://github.com/meteor/meteor/blob/devel/packages/google/google_client.js#L29
Is this possible in azureAd? Does combining request scopes into a URL element -- as in the google example -- work for azure oauth login?
https://github.com/djluck/azure-active-directory/blame/master/lib/serverHttp.js#L18
The response that you get from HTTP data contains the following attributes:
statusCode Number
Numeric HTTP result status code, or null on error.
content String
The body of the HTTP response as a string.
data Object or null
If the response headers indicate JSON content, this contains the body of the document parsed as a
JSON object.
headers Object
A dictionary of HTTP headers from the response.
When adding a resource for the Onenote API and try to get page content, the content is not returned as JSON, but as a string of HTML. This means that response.data
is null
and the request throws an exception. ๐ TypeError: Cannot read property 'error' of null
https://github.com/djluck/azure-active-directory/blob/master/azure_ad_server.js#L34-L39
Hey @djluck I don't believe it's correct to set the email address here (no core accounts packages do this).
Normally token needs to be validated to verify the data came from Azure. How does this package achieve this?
Thanks!
Hi @djluck, thank you for creating this cool package ๐
I just have one minor concern...Should we put onCreateUsers [https://github.com/djluck/azure-active-directory/blob/master/azure_ad_server.js#L5] to package? IMO, onCreateUsers can be called only once so it will be a limitation if we want not only azure sso but also facebook, twitter...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.