manage AgentConnect callback

This commit is contained in:
simon lehericey 2021-11-19 15:24:54 +01:00
parent 1926a630f9
commit 5234a1854c
4 changed files with 46 additions and 1 deletions

View file

@ -13,4 +13,12 @@ class AgentConnectService
acr_values: 'eidas1'
)
end
def self.user_info(code)
client = AgentConnectClient.new(code)
client.access_token!(client_auth_method: :secret)
.userinfo!
.raw_attributes
end
end