Comments (6)
@ejurisev I am also having an issue after AJ6 upgrade. Please have a look at the ticket that I have raised and we may have a possible solution (see last comments in the ticket). ##41
from adal-angular5.
@ravivit9 Thank you for responding but your issue is different than mine. I am not getting any errors and not using angular 6. I just need a working example using Angular 5.
from adal-angular5.
I had a similar issue and the fix was to get rid of the map call at the end of the request. This uses Angular HttpClient instead of the old Http api and it handles mapping differently. This means that making a map call swallows the return.
Also, for the return type of getPlants set the Observable type to the type you want it converted to. Try something like this:
public getPlants(): Observable<IPlant[]> {
const options = this.prepareOptions();
return this.http.get(${environment.apiUrl}, options);
}
from adal-angular5.
@ejurisev is your app getting a token twice? authenticate user at the Angular website, then authenticate user for Web API app? I'm curious because there are no examples from Microsoft explaining what's best practice, just lame, "wow, it communicates?>!" examples. Thanks,
from adal-angular5.
The actual problem is with acquireToken
when the endpoints
inside of your ADAL config are present. I have this issue also. The problem is, that says in loop all the time and the web application reloads itself all the time because IFRAME of ADAL redirects the your application.
Its getting even worser - inside of IFRAME which is created by ADAL redirects to your application, which creates again IFRAME which redirects again to your app - so actually ADAL creates nested IFRAMEs where redirects to your application.
THAT'S FU*** UP ! -.-
PS. I'm gonna reference this issue in adal-js repository.
from adal-angular5.
The actual issue here is the application reloading itself in the hidden iFrame instead of endpoints configuration. I had similar issue, resolved it by adding redirectUri in ADAL configuration and upgrading to latest ADAL.js version (1.0.17).
Also refer this FAQ for explanation: https://github.com/AzureAD/azure-activedirectory-library-for-js/wiki/FAQs
Q1 and Q3
from adal-angular5.
Related Issues (20)
- Write unit tests: HOT 1
- use @typings for adal-angular HOT 3
- cherry pick [benbran#23](https://github.com/benbaran/adal-angular4/pull/23) HOT 1
- BUG: Cannot call Microsoft Graph using adal-angular5 HOT 1
- Use version 2.1.1 HOT 1
- handleWindowCallback refreshing page HOT 1
- Fancy doing an angular6 one? HOT 1
- No way to handle interaction_required adal errors
- Post Angular 6 and rxjs Upgrade throws runtime error. HOT 8
- Access token Expiry - 401 Unauthorized on AJAX HOT 2
- [Bug] Acquire token ( Refresh token ) not working
- Error when first time acquire access token for resource HOT 3
- Http Interceptor does not account for resource specific tokens HOT 1
- how to update new token when generated token has expired
- Token is null & authenication is false
- ng-init calling 2 times big issue
- Multi Issue in aquiretoken function. The function works fine if the token is in local storage. But when you will remove the storage and invoke the acquiretoken function it will not get inside the subscribe block. and more over that its getting invoked only once
- Multiple issues in Version 2.1.1 HOT 1
- Does adal-angular 5 supports in angular 7? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adal-angular5.