UX: Change callback URL to be shorter
This commit is contained in:
parent
5ce9aeb174
commit
1c56447c91
|
@ -60,7 +60,7 @@ end
|
||||||
class OpenIDConnectAuthenticator < Auth::ManagedAuthenticator
|
class OpenIDConnectAuthenticator < Auth::ManagedAuthenticator
|
||||||
|
|
||||||
def name
|
def name
|
||||||
'openid_connect'
|
'oidc'
|
||||||
end
|
end
|
||||||
|
|
||||||
def enabled?
|
def enabled?
|
||||||
|
@ -69,7 +69,7 @@ class OpenIDConnectAuthenticator < Auth::ManagedAuthenticator
|
||||||
|
|
||||||
def register_middleware(omniauth)
|
def register_middleware(omniauth)
|
||||||
omniauth.provider :openid_connect,
|
omniauth.provider :openid_connect,
|
||||||
name: :openid_connect,
|
name: :oidc,
|
||||||
cache: lambda { |key, &blk| Rails.cache.fetch(key, expires_in: 10.minutes, &blk) },
|
cache: lambda { |key, &blk| Rails.cache.fetch(key, expires_in: 10.minutes, &blk) },
|
||||||
setup: lambda { |env|
|
setup: lambda { |env|
|
||||||
opts = env['omniauth.strategy'].options
|
opts = env['omniauth.strategy'].options
|
||||||
|
|
Loading…
Reference in New Issue