lib/omniauth/strategies/oidc.rb in omniauth_oidc-0.2.3 vs lib/omniauth/strategies/oidc.rb in omniauth_oidc-0.2.4

- old
+ new

@@ -46,11 +46,11 @@ option :issuer option :client_signing_alg option :jwt_secret_base64 option :client_jwk_signing_key option :client_x509_signing_key - option :scope, [:openid] + option :scope, nil option :response_type, "code" # ['code', 'id_token'] option :require_state, true option :state option :response_mode # [:query, :fragment, :form_post, :web_message] option :display, nil # [:page, :popup, :touch, :wap] @@ -156,10 +156,10 @@ @host ||= URI.parse(config.issuer).host end # By default Returns all scopes supported by the OIDC provider def scope - config.scopes_supported || options.scope + options.scope || config.scopes_supported || [:open_id] end def authorization_code params["code"] end