Skip to content

Commit

Permalink
Refactors API Key authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanderhoof committed Oct 20, 2023
1 parent 2189cc3 commit 6fc43b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/domain/authentication/authn_api_key/v2/strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def callback(request_body:, parameters:)
end

role_identifier = Authentication::Base::RoleIdentifier.new(
role_identifier: role_id
identifier: role_id
)

if @role[role_id].nil?
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def matches?(request)
get '/:authenticator(/:service_id)/:account/login' => 'authenticate#login'

constraints authenticator: /authn/ do
post '/:authenticator/:account(/:id)/authenticate' => 'authenticate#authenticate_via_post'
post '/:authenticator/:account/:id/authenticate' => 'authenticate#authenticate_via_post'
end

constraints authenticator: /authn|authn-azure|authn-iam|authn-k8s|authn-ldap/ do
Expand Down

0 comments on commit 6fc43b4

Please sign in to comment.