Commit 2f5742e9 authored by Clément OUDOT's avatar Clément OUDOT

Manage initial redirection in GoogleMigration (#LEMONLDAP-807)

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@3713 1dbb9719-a921-0410-b57f-c3a383c2c641
parent ca783b0b
......@@ -49,7 +49,7 @@ sub extractFormInfo {
my $client_id = $self->{googleClientId};
my $client_secret = $self->{googleClientSecret};
my $redirect_uri = $self->{portal} . "?googlecb=1";
my $state = encode_base64( $self->{urldc} );
my $state = encode_base64url( $self->{urldc} );
my $callback = $self->param("googlecb");
......@@ -96,6 +96,10 @@ sub extractFormInfo {
$self->{user} = $id_token_payload_hash->{email};
if ( $self->param("state") ) {
$self->{urldc} = decode_base64url( $self->param("state") );
}
return PE_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment