2015-10-06 11:21:20 +02:00
|
|
|
class FranceConnectClient < OpenIDConnect::Client
|
|
|
|
|
|
|
|
def initialize params={}
|
|
|
|
super(
|
|
|
|
identifier: FRANCE_CONNECT.identifier,
|
|
|
|
secret: FRANCE_CONNECT.secret,
|
2015-10-07 16:38:29 +02:00
|
|
|
|
2015-10-06 11:47:42 +02:00
|
|
|
redirect_uri: FRANCE_CONNECT.redirect_uri,
|
2015-10-07 16:38:29 +02:00
|
|
|
|
2015-10-06 11:47:42 +02:00
|
|
|
authorization_endpoint: FRANCE_CONNECT.authorization_endpoint,
|
|
|
|
token_endpoint: FRANCE_CONNECT.token_endpoint,
|
2015-10-07 16:38:29 +02:00
|
|
|
userinfo_endpoint: FRANCE_CONNECT.userinfo_endpoint,
|
|
|
|
logout_endpoint: FRANCE_CONNECT.logout_endpoint
|
2015-10-06 11:21:20 +02:00
|
|
|
)
|
|
|
|
self.authorization_code = params[:code] if params.has_key? :code
|
|
|
|
end
|
|
|
|
end
|