Bad URL in OIDC authentication flow when first authentication
When testing OIDC authentication from RP without being authenticated on OP, the flow ends with a "Bad URL" error after login+consent screen:
[debug] Get session 8faa76011d8e811799d0c1af8c754e70a0448801040170684b2e219fe473892b
[debug] removing cookie
[debug] User dwho was granted to access to /oauth2/authorize?response_type=code&client_id=lemonldap&scope=openid%20profile%20address%20email%20phone&redirect_uri=http%3A%2F%2Fauth.example.com%2Foauth2.pl%3Fopenidconnectcallback%3D1&state=ABCDEFGHIJKLMNOPQRSTUVWXXZ&nonce=1234567890&display=popup&prompt=consent&ui_locales=fr-CA%20en-GB%20en%20fr-FR%20fr
[debug] Start routing oauth2
[debug] Processing _forAuthUser
[notice] Bad (or expired) token 1497288803_7661
[debug] Processing importHandlerDatas
[debug] Processing controlUrl
[debug] Confirm parameter accepted 1
[error] Value must be in BASE64 (param: url | value: http://auth.example.com:19876/oauth2/authorize?issuerRequestoauth2=1497288803_7661)
[debug] Returned error: 37
Status: Unknown command line : dwho => /oauth2/authorize?response_type=code&client_id=lemonldap&scope=openid profile address email phone&redirect_uri=http:/auth.example.com/oauth2.pl?openidconnectcallback=1&state=ABCDEFGHIJKLMNOPQRSTUVWXXZ&nonce=1234567890&display=popup&prompt=consent&ui_locales=fr-CA en-GB en fr-FR fr 37
[debug] Skin returned: error
[debug] Calling sendHtml with template error
[debug] Starting HTML generation using /home/clement/dev/lemonldap/trunk/lemonldap-ng-portal/site/templates/bootstrap/error.tpl