Skip to content

Commit

Permalink
fix for unitialized constant oidc in strategy (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
msuliq authored Oct 16, 2024
1 parent 6a3a129 commit 840c899
Show file tree
Hide file tree
Showing 4 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.5] - 2024-10-16
- Fix for uninitialized constant Oidc in strategy.rb:163

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

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.4"
VERSION = "0.2.5"
end
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/oidc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Oidc

def_delegator :request, :params

option :name, "oidc" # to separate each oidc provider available in the app
option :name, :oidc # to separate each oidc provider available in the app
option(:client_options, identifier: nil, # client id, required
secret: nil, # client secret, required
host: nil, # oidc provider host, optional
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/oidc/verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def public_key
private

def fetch_key
@fetch_key ||= parse_jwk_key(::Oidc.http_client.get(config.jwks_uri).body)
@fetch_key ||= parse_jwk_key(::OpenIDConnect.http_client.get(config.jwks_uri).body)
end

def base64_decoded_jwt_secret
Expand Down

0 comments on commit 840c899

Please sign in to comment.