Skip to content

Commit

Permalink
Merge pull request #2598 from cyberark/Fix-cucumber-bug
Browse files Browse the repository at this point in the history
Fix cucumber bug
  • Loading branch information
jvanderhoof authored Jul 11, 2022
2 parents 81f4c39 + 8d5c47f commit f18eec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions app/domain/authentication/handler/authentication_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,13 @@ def call(parameters:, request_ip:)
account: parameters[:account],
username: role.role_id.split(':').last
)
rescue e
rescue => e
log_audit_failure(parameters[:account], parameters[:service_id], request_ip, @authenticator_type, e)
handle_error(e)
end

def handle_error(err)
# authentication_error = LogMessages::Authentication::AuthenticationError.new(err.inspect)
@logger.warn(@authentication_error.new(err))

puts authentication_error
puts authentication_error
puts Errors::Authentication::Security::RoleNotFound
case err
when Errors::Authentication::Security::RoleNotAuthorizedOnResource
puts "Errors::Authentication::Security::RoleNotAuthorizedOnResource"
Expand Down
2 changes: 1 addition & 1 deletion dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ services:
- [email protected]
- KEYCLOAK_SECOND_APP_USER=bob.somebody
- KEYCLOAK_SECOND_APP_USER_PASSWORD=bob
- KEYCLOAK_SECOND_APP_USER_EMAIL=bob[email protected]
- KEYCLOAK_SECOND_APP_USER_EMAIL=bob@conjur.net
- KEYCLOAK_NON_CONJUR_APP_USER=not_in_conjur
- KEYCLOAK_NON_CONJUR_APP_USER_PASSWORD=not_in_conjur
- KEYCLOAK_NON_CONJUR_APP_USER_EMAIL=not_in_conjur
Expand Down

0 comments on commit f18eec8

Please sign in to comment.