ranveeraggarwal / angular-adal-quickstart Goto Github PK
View Code? Open in Web Editor NEWQuickstart/Seed for using Microsoft's AAD Authentication with Angular (2/4).
License: MIT License
Quickstart/Seed for using Microsoft's AAD Authentication with Angular (2/4).
License: MIT License
This is working only for Azure B2B AD and not for Azure B2C AD. I need to provide the B2C SignIn policy. (1) How can I make it work with B2C Azure AD? (2) How can I fetch the Token as a string as I need to pass the Bearer token to authenticate & call a REST service? (3) How do I list the claims?
Hi! I noticed the application is not redirected to the dashboard page after log in. The authentication process seems to work, as the token is returned. But localStorage is not updated with the token.
Thanks.
What I did:
Filename of secret.service.ts.template needs to changed to secret.service.ts.template in app/services directory to run the project.
It'll be really helpful if tests can be written for this and travis integrated with this.
I am not working on this repository anymore, so if someone is ready to take this up, I will add that person as a permanent collaborator (if interested).
Hi,
I am trying to integrate this package with a brand new Angular 2 app (using "@angular/core": "^4.1.2"
in package.json). I'm using webpack to do the build instead of SystemJs.
Local dev build with ng build
and ng serve
is working fine but prod build with ng build --prod --aot
fails with the following error.
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol Injectable in c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/core/src/di.d.ts, resolving symbol Injectable in c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/core/src/core.d.ts, resolving symbol Injectable in c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/core/index.d.ts, resolving symbol BrowserXhr in
c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/http/src/backends/browser_xhr.d.ts, resolving symbol BrowserXhr in c:/path-to-my-project/node_modules/ng2-adal/node_modules/@angular/http/src/backends/browser_xhr.d.ts
Is this because the package is built using older Angular version? Is there a way I can get around it or fix it?
Seems like adalContext is null somehow. Take a look into source file line 61.
ERROR TypeError: Cannot read property 'login' of undefined
at AdalService.webpackJsonp.../../../../ng2-adal/dist/services/adal.service.js.AdalService.login (adal.service.js:61)
I am using it with Ang v5.0
How can I fetch the Token as a string as I need to pass the Bearer token to authenticate & call a REST service.
What's the process of getting the ng2-adal package to work with the Karma/Jasmine tests? When you include it as a service in a spec file, it can't fine the .js files in the node module.
After successfully running the npm install, npm start gives the following error
17 error Windows_NT 10.0.14393 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 19 error node v6.10.0 20 error npm v3.10.10 21 error code ELIFECYCLE 22 error [email protected] start:
tsc && concurrently "tsc -w" "lite-server" 22 error Exit status 2 23 error Failed at the [email protected] start script 'tsc && concurrently "tsc -w" "lite-server" '. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the angular-quickstart package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error tsc && concurrently "tsc -w" "lite-server" 23 error You can get information on how to open an issue for this project with: 23 error npm bugs angular-quickstart 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls angular-quickstart 23 error There is likely additional logging output above.
Npm and node version below
`ng2-adal-QuickStart-master>npm --version
3.10.10
ng2-adal-QuickStart-master>node --version
v6.10.0`
Please see the issue description at URL :
https://stackoverflow.com/questions/44787033/angular-4-context-lost-after-authentication
I think Angular context is being reset as redirecting to Azure AD login page is causing browser to refresh and going to Azure AD to fetch token.
The author of ng2-adal has updated the library: https://github.com/sureshchahal/angular2-adal
This example needs to be updated to that latest version (probably some changes in the package.json file). By extension, this will also mean that the example will now use Angular 4.
Since now Angular 5 is latest, it seems that ngx-adal does not work with Angular 5 nice.
Can you check and fix?
https://developer.microsoft.com/en-us/graph
id_token is not valid on microsoft graph as single endpoints
Why is there no option to select for multi factor authentication while logging in? Am I missing something here?
Is there a way that we can use your Adal library for signing into the Azure WS-Federation ADFS page instead of being directed to https://login.microsoftonline.com? That would be nice to be able to login to Azure Ws-Federation without have to strap an MVC app to it. Thanks!
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.