demarches-normaliennes/app/services/france_connect_service.rb
2015-10-06 11:47:42 +02:00

8 lines
225 B
Ruby

class FranceConnectService
def self.retrieve_user_informations code
client = FranceConnectClient.new code: code
access_token = client.access_token!(client_auth_method: :secret)
access_token.userinfo!
end
end