How to maintain Oauth2 State in Laravel Passport


How to maintain Oauth2 State in Laravel Passport



I am trying to implement Laravel Passport in my project but i can't found how to maintain Oauth2 State.
In Laravel passport official documentation not get enough information about Oauth2 state.
I am trying to implement Oauth2 authentication with Anuglar6 and Laravel .



In oauth2 documentation, there are "state" to prevent CSRF protection.



"The client MUST implement CSRF protection for its redirection URI.
This is typically accomplished by requiring any request sent to the
redirection URI endpoint to include a value that binds the request to
the user-agent's authenticated state (e.g., a hash of the session
cookie used to authenticate the user-agent). The client SHOULD
utilize the "state" request parameter to deliver this value to the
authorization server when making an authorization request.
"



https://tools.ietf.org/html/rfc6749#section-10.12









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

List of Kim Possible characters

Python Tkinter Error, “Too Early to Create Image”