2015-12-18 12:01:26 +01:00
|
|
|
class FranceConnectEntrepriseClient < OpenIDConnect::Client
|
|
|
|
|
|
|
|
def initialize params={}
|
|
|
|
super(
|
2015-12-21 15:24:02 +01:00
|
|
|
identifier: FRANCE_CONNECT.entreprise_identifier,
|
|
|
|
secret: FRANCE_CONNECT.entreprise_secret,
|
2015-12-18 12:01:26 +01:00
|
|
|
|
|
|
|
redirect_uri: FRANCE_CONNECT.entreprise_redirect_uri,
|
|
|
|
|
|
|
|
authorization_endpoint: FRANCE_CONNECT.entreprise_authorization_endpoint,
|
|
|
|
token_endpoint: FRANCE_CONNECT.entreprise_token_endpoint,
|
|
|
|
userinfo_endpoint: FRANCE_CONNECT.entreprise_userinfo_endpoint,
|
|
|
|
logout_endpoint: FRANCE_CONNECT.entreprise_logout_endpoint
|
|
|
|
)
|
|
|
|
self.authorization_code = params[:code] if params.has_key? :code
|
|
|
|
end
|
|
|
|
end
|