demarches-normaliennes/app/models/agent_connect_client.rb

10 lines
180 B
Ruby
Raw Normal View History

2021-11-19 10:21:47 +01:00
class AgentConnectClient < OpenIDConnect::Client
2021-11-19 15:24:54 +01:00
def initialize(code = nil)
2021-11-19 10:21:47 +01:00
super(AGENT_CONNECT)
2021-11-19 15:24:54 +01:00
if code.present?
self.authorization_code = code
end
2021-11-19 10:21:47 +01:00
end
end