17 lines
643 B
Ruby
17 lines
643 B
Ruby
class FranceConnectEntrepriseClient < OpenIDConnect::Client
|
|
|
|
def initialize params={}
|
|
super(
|
|
identifier: FRANCE_CONNECT.entreprise_identifier,
|
|
secret: FRANCE_CONNECT.entreprise_secret,
|
|
|
|
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
|