16 lines
650 B
Ruby
16 lines
650 B
Ruby
class FranceConnectParticulierClient < OpenIDConnect::Client
|
|
def initialize params={}
|
|
super(
|
|
identifier: FRANCE_CONNECT.particulier_identifier,
|
|
secret: FRANCE_CONNECT.particulier_secret,
|
|
|
|
redirect_uri: FRANCE_CONNECT.particulier_redirect_uri,
|
|
|
|
authorization_endpoint: FRANCE_CONNECT.particulier_authorization_endpoint,
|
|
token_endpoint: FRANCE_CONNECT.particulier_token_endpoint,
|
|
userinfo_endpoint: FRANCE_CONNECT.particulier_userinfo_endpoint,
|
|
logout_endpoint: FRANCE_CONNECT.particulier_logout_endpoint
|
|
)
|
|
self.authorization_code = params[:code] if params.has_key? :code
|
|
end
|
|
end
|