Skip to content

Using OpenIDConnect does not respect configuration scopes #51

@vahem2lu

Description

@vahem2lu

Code

    'myVeryFancyAuth' => array(
      'authoauth2:OpenIDConnect',
      // *** Required for all integrations ***
      'issuer' => 'https://issuer.something.i.know',
      'clientId' => 'myClientID',
      'clientSecret' => 'VerySecret',
      'scopes' => [ 'openid' ],

      // Most Optional settings for OAuth2 above can be used
      // *** New Optional ***
      // Customize post logout redirect, if you don't want to use the standard /module.php/authoauth2/loggedout.php
      #'postLogoutRedirectUri' => 'https://myapp.example.com/loggedout'
    ),

Results in SimpleSAMLphp error:

SimpleSAML\Error\AuthSource: Error with authentication source 'myVeryFancyAuth': Authentication failed: [invalid_scope] The requested scope is invalid, unknown, or malformed. The OAuth 2.0 Client is not allowed to request scope 'profile'.

Backtrace:
5 modules/authoauth2/lib/OAuth2ResponseHandler.php:127 (SimpleSAML\Module\authoauth2\OAuth2ResponseHandler::handleErrorResponse)
4 modules/authoauth2/lib/OAuth2ResponseHandler.php:86 (SimpleSAML\Module\authoauth2\OAuth2ResponseHandler::handleResponseFromRequest)
3 modules/authoauth2/lib/OAuth2ResponseHandler.php:55 (SimpleSAML\Module\authoauth2\OAuth2ResponseHandler::handleResponse)
2 modules/authoauth2/www/linkback.php:5 (require)
1 lib/SimpleSAML/Module.php:266 (SimpleSAML\Module::process)
0 www/module.php:10 (N/A)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions