Giter Club home page Giter Club logo

Comments (6)

ravivit9 avatar ravivit9 commented on September 15, 2024

@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.

ejurisev avatar ejurisev commented on September 15, 2024

@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.

aidanpryde18 avatar aidanpryde18 commented on September 15, 2024

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.

largeDachshund avatar largeDachshund commented on September 15, 2024

@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.

TheAifam5 avatar TheAifam5 commented on September 15, 2024

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.

walunjsachin avatar walunjsachin commented on September 15, 2024

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)

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.