-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate signing key settings and settings fetcher to main flow #2456
Conversation
c20a80e
to
cb8da19
Compare
429676c
to
28c998b
Compare
06047d7
to
5f12b3d
Compare
e54b603
to
c8db022
Compare
5f12b3d
to
5200f67
Compare
c8db022
to
9829781
Compare
5200f67
to
27b9a59
Compare
27b9a59
to
1435996
Compare
if provider_uri_resource_exists? and !jwks_uri_has_resource_exists? | ||
fetch_provider_uri_signing_key | ||
elsif jwks_uri_has_resource_exists? and !provider_uri_resource_exists? | ||
case signing_key_settings.type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Authentication::AuthnJwt::SigningKey#create_signing_key_provider calls 'signing_key_settings.type' 2 times
create_signing_key_provider | ||
end | ||
|
||
private | ||
|
||
def fetch_signing_key_settings | ||
@signing_key_settings ||= @fetch_signing_key_settings.call( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Memoized variable @signing_key_settings
does not match method name fetch_signing_key_settings
. Use @fetch_signing_key_settings
instead.
raise Errors::Authentication::AuthnJwt::InvalidUriConfiguration.new( | ||
PROVIDER_URI_RESOURCE_NAME, | ||
JWKS_URI_RESOURCE_NAME | ||
raise Errors::Authentication::AuthnJwt::InvalidSigningKeyType.new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide an exception class and message as arguments to raise
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1435996
to
6075461
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Code Climate has analyzed commit 6075461 and detected 3 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 91.1% (0.0% change). View more on Code Climate. |
Desired Outcome
The PR is a part of creating abstraction layer for variables in the area of signing keys fetching and settings.
Implemented Changes
This PR integrates classes are created in the PR #2455 into the main flows of authentication and status of JWT authenticator.
Connected Issue/Story
ONYX-15595
Definition of Done
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security