Skip to content
Snippets Groups Projects
Commit d13c9ae1 authored by Pietro Saccardi's avatar Pietro Saccardi
Browse files

Handle the state parameter in callback URL.

This fixes login with certain providers, e.g. Authentik,
that trigger the message
"OAuth: State not found in session, are you sure you stored it?"

This closes #6.
parent fde2b1b7
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,10 @@ use OAuth\Common\Http\Uri\Uri;
*/
class Generic extends AbstractOAuth2Base
{
/** @inheritdoc */
public function needsStateParameterInAuthUrl() {
return true;
}
/** @inheritdoc */
public function getAuthorizationEndpoint()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment