Skip to content

Commit

Permalink
[TAN-2518] removed hardcoded redirect URI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesspeake committed Oct 10, 2024
1 parent 20d7181 commit b028982
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def omniauth_setup(configuration, env)
options[:client_options] = {
identifier: config[:client_id],
secret: config[:client_secret],
redirect_uri: 'https://keycloak-r3tyu.loca.lt/auth/keycloak/callback',
redirect_uri: "#{configuration.base_backend_uri}/auth/keycloak/callback",

# NOTE: Cannot use auto discovery as .well-known/openid-configuration is not on the root of the domain
client_signing_alg: :RS256,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ def other_attributes
%i[email]
end

def locked_custom_fields
[
config[:birthday_custom_field_key].presence,
config[:birthyear_custom_field_key].presence
].compact
end

def profile_to_uid(auth)
auth['uid']
end
Expand Down

0 comments on commit b028982

Please sign in to comment.