Skip to content

Commit

Permalink
Fix bug with configurable scopes (#11)
Browse files Browse the repository at this point in the history
Related to #10
  • Loading branch information
msuliq authored Sep 28, 2024
1 parent 6cff7ff commit 6a3a129
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## [Released]

## [0.2.4] - 2024-09-28
- Fix bug with configurable scopes

## [0.2.3] - 2024-08-04
- Update readme

Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/oidc/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OmniauthOidc
VERSION = "0.2.3"
VERSION = "0.2.4"
end
4 changes: 2 additions & 2 deletions lib/omniauth/strategies/oidc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Oidc
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
Expand Down Expand Up @@ -158,7 +158,7 @@ def host

# 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
Expand Down

0 comments on commit 6a3a129

Please sign in to comment.