FC: move FC constants under particulier namespace

This commit is contained in:
Simon Lehericey 2018-01-15 12:07:54 +01:00
parent 06d9c4356e
commit 0d46f92795
5 changed files with 24 additions and 21 deletions

View file

@ -1,15 +1,13 @@
class FranceConnectParticulierClient < OpenIDConnect::Client
def initialize(code = nil)
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
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
)
if code.present?