Coder Social home page Coder Social logo

Comments (3)

david-on-github avatar david-on-github commented on August 10, 2024

This looks like a duplicate of (#13).
Please reopen if you think there is still an issue.

from ng-oidc-client.

malled avatar malled commented on August 10, 2024

I'm facing the same issue.
On callback.html page, the library cannot find the right settings. Because of this, it tries to load the user from local storage with an undefined key user:undefined:undefined.

How is it supposed to work? When the login flow starts, the right settings are added to local storage with a prefix + id, but how should the callback know the id and where does it get parsed?

Edit: when setting response_mode:'query' it stores the user in local storage and redirects back. Do I need to check the local storage for a valid user in my app afterwards?

Edit2: signinSilent works after redirecting!

from ng-oidc-client.

david-on-github avatar david-on-github commented on August 10, 2024

Hi @malled ,

It's been a while, but from what I remember that shouldn't be necessary. The user loaded event should be caught in oidc-client which loads the user into state. Looks like the signinPopup effect doesn't load a user even though it recieves it in the promise, and I believe we did that to prevent over dispatching duplicate actions.

from ng-oidc-client.

Related Issues (19)

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.