aboutsummaryrefslogtreecommitdiff
path: root/src/kyclogic/kyclogic-oauth2.conf
blob: 6f83c0e44eb3caa4cc81a5faf965c2970741875a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is in the public domain.

# Example Oauth2.0 provider configuration.

[kyc-provider-example-oauth2]

COST = 42
LOGIC = oauth2
USER_TYPE = INDIVIDUAL
PROVIDED_CHECKS = EXAMPLE_DO_NOT_USE

# How long is the KYC check valid?
KYC_OAUTH2_VALIDITY = forever

# URL where we initiate the user's login process
KYC_OAUTH2_LOGIN_URL = http://kyc.example.com/login
# URL where we send the user's authentication information
KYC_OAUTH2_AUTH_URL = http://kyc.example.com/auth
# URL of the user info access point.
KYC_OAUTH2_INFO_URL = http://kyc.example.com/info

# Where does the client get redirected upon completion?
KYC_OAUTH2_POST_URL = http://example.com/thank-you

# For authentication to the OAuth2.0 service
KYC_OAUTH2_CLIENT_ID = testcase
KYC_OAUTH2_CLIENT_SECRET = password

# Mustach template that converts OAuth2.0 data about the user
# into GNU Taler standardized attribute data.
#
# This is just an example, details will depend on the
# provider!
#
KYC_OAUTH2_ATTRIBUTE_TEMPLATE = "{"fullname":"{{last_name}}, {{first_name}}","phone":"{{phone}}"}"