Giter Site home page Giter Site logo

Comments (3)

lordelph avatar lordelph commented on July 18, 2024 2

If you mean "is the user authenticated in your application", then that's entirely down to you, as this doesn't maintain any state for you (aside from some session variables during the authentication itself). You would typically detect a user is not logged in, and if the authenticate() call returns, set up a suitable session state yourself.

See also #22

from openid-connect-php.

meghprkh avatar meghprkh commented on July 18, 2024

Since there is no way of setting id token and accesstoken again, it makes less sense to not store them as session variables. I integrated that into the library felicity-iiith@7e488f9 . But I am unsure if this is what the library wants as it may want the user to manage the state themselves and thus then the way shall be to expose setting id_token and access_token for successive calls for the same user (as in logout, userinfo from other pages)

from openid-connect-php.

jumbojett avatar jumbojett commented on July 18, 2024

@meghprkh see https://github.com/jumbojett/Wordpress-OpenID-Connect-Login for an example. Our lib is generic enough that you can extend the class and add your own logic.

from openid-connect-php.

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.