Compatibility with AuthChoice (#183)

This commit is contained in:
Clément Oudot 2014-12-11 17:05:33 +00:00
parent 8b7ad81ff5
commit 18072723de
2 changed files with 7 additions and 2 deletions

View File

@ -215,8 +215,6 @@ sub extractFormInfo {
my $stateSession = $self->storeState();
# TODO Use AuthChoiceParam in redirect URL
# Authorization Code Flow
$self->{urldc} = $self->buildAuthorizationCodeAuthnRequest( $op, $state );

View File

@ -148,6 +148,13 @@ sub getCallbackUri {
? '&' . $callback_get_param . '=1'
: '?' . $callback_get_param . '=1';
# Use authChoiceParam in redirect URL
if ( $self->param( $self->{authChoiceParam} ) ) {
$callback_uri .= '&'
. $self->{authChoiceParam} . '='
. uri_escape( $self->param( $self->{authChoiceParam} ) );
}
$self->lmLog( "OpenIDConnect Callback URI: $callback_uri", 'debug' );
return $callback_uri;