16 lines
357 B
Ruby
16 lines
357 B
Ruby
class AgentConnectService
|
|
def self.enabled?
|
|
ENV.fetch("AGENT_CONNECT_ENABLED", "enabled") == "enabled"
|
|
end
|
|
|
|
def self.authorization_uri
|
|
client = AgentConnectClient.new
|
|
|
|
client.authorization_uri(
|
|
scope: [:openid, :email],
|
|
state: SecureRandom.hex(16),
|
|
nonce: SecureRandom.hex(16),
|
|
acr_values: 'eidas1'
|
|
)
|
|
end
|
|
end
|