-
Notifications
You must be signed in to change notification settings - Fork 3
/
application-dev.yml
143 lines (140 loc) · 6.51 KB
/
application-dev.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
gateway:
backend:
url: http://localhost:5800
backend-cosv:
url: http://localhost:5700
frontend:
# In the "dev" environment, the front-end uses TCP port 8080 when run using `webpack-dev-server` (i.e. `browserDevelopmentRun` or `run` Gradle task).
url: http://localhost:8080
frontend-cosv:
# In the "dev" environment, the frontend-cosv uses TCP port 8081 when run using `webpack-dev-server` (i.e. `browserDevelopmentRun` or `run` Gradle task).
url: http://localhost:8081
demo:
url: http://localhost:5421
demo-cpg:
url: http://localhost:5500
# for local test add additional lines in hosts file in your OS
# then you can access application using <domain>:5300
hosts:
save: save.local.test
cosv: cosv.local.test
spring:
security:
oauth2:
client:
provider:
codehub:
authorization-uri: https://codehub-g.huawei.com/oauth/authorize
token-uri: https://codehub-g.huawei.com/oauth/token
user-info-uri: https://codehub-g.huawei.com/api/v4/user
user-name-attribute: username
user-info-authentication-method: post
huawei:
authorization-uri: https://oauth-login.cloud.huawei.com/oauth2/v3/authorize
token-uri: https://oauth-login.cloud.huawei.com/oauth2/v3/token
jwk-set-uri: https://oauth-login.cloud.huawei.com/oauth2/v3/certs
user-info-uri: https://account.cloud.huawei.com/rest.php?nsp_svc=GOpen.User.getInfo
user-name-attribute: openID
user-info-authentication-method: post
gitee:
authorization-uri: https://gitee.com/oauth/authorize
token-uri: https://gitee.com/oauth/token
user-info-uri: https://gitee.com/api/v5/user
user-name-attribute: login
# example: https://github.com/wearearima/spring-boot-dex/blob/ad7dd7f501f8fc3946fc87184b4b8b705713ead9/src/main/resources/application.properties
dex:
authorization-uri: http://localhost:5556/dex/auth
token-uri: http://localhost:5556/dex/token
jwk-set-uri: http://localhost:5556/dex/keys
github:
# This is because in the default configuration
# (o.s.s.c.o.c.CommonOAuth2Provider#GITHUB), the numeric "id" field
# is taken from the JSON response from https://api.github.com/user.
#
# We want the publicly-visible "login" value instead.
#
# See https://docs.github.com/en/rest/users/users#get-the-authenticated-user
# for more details.
user-name-attribute: login
registration:
google:
client-id: 943335421056-7ova0sgv6o4goapkripv8dk3ov4og6kc.apps.googleusercontent.com
client-secret: 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
huawei:
provider: huawei
client-id: 108713087
client-secret: 86d1ffd3035595ca33b49eeb1cbfb0b1f467ec7ed3e1245c0fb3c885c2fabb46
redirect-uri: '${gateway.frontend.url}/{action}/oauth2/code/{registrationId}'
authorization-grant-type: authorization_code
client-authentication-method: client_secret_post
# can be
# - openid (doesn't work due to invalid_nonce)
# - email (works but user allowed to not select to share an email)
# - profile
scope: profile
codehub:
provider: codehub
client-id: qp_f_Xrr5TFpliCyskVbG8mMN-nmAFNc2fo6bPhp1VnU3A0cZD_vNiKIfN61bKox
client-secret: r6h2Qoiks2MvgxKcYe3hAEAr242qgTGqZ5t2iK6QFCwxh6rGTsM4_vt_RSXijvTm
redirect-uri: '${gateway.frontend.url}/{action}/oauth2/code/{registrationId}'
authorization-grant-type: authorization_code
client-authentication-method: client_secret_post
# can be
# - openid (doesn't work due to invalid_nonce)
# - email (works but user allowed to not select to share an email)
# - profile
scope: profile
gitee:
client-id: 6b7fc07ecdf7a12d9aa8e2aaf034743baa6f77e036dc22fe6455e02fcf51a851
client-secret: 8908a8a4239c688af45a4db89ec27d4a7e7f5076dc3125b07b506de6414926a3
client-name: Gitee
provider: gitee
redirect-uri: '${gateway.frontend.url}/{action}/oauth2/code/{registrationId}'
authorization-grant-type: authorization_code
scope:
- user_info
dex:
client-id: save-gateway-dev
client-secret: 123test123
authorization-grant-type: authorization_code
redirect-uri: '${gateway.frontend.url}/{action}/oauth2/code/{registrationId}'
scope:
- openid
github:
# IMPORTANT! When you create a GitHub application on the GITHUB you need to provide a callback API.
# If you will only provide a domain name: 'saveourtool.com' in CALLBACK URL field, everything will go well.
# GitHub will automatically add all the remaining endpoint information (after the domain name): /login/oauth2/code/github
#
# We don't set any redirect-uri here, because it's managed by GitHub
# (the field is called "Authorization callback URL" and, for a local
# deployment, it should be exactly "http://localhost:8080/login/oauth2/code/github").
#
# Navigate to http://localhost:8080/sec/oauth-providers or
# http://localhost:5300/sec/oauth-providers to check that the OAuth
# provider is correctly installed.
#
# This is the public Client ID of your GitHub OAuth application.
# See https://docs.github.com/en/developers/apps/building-oauth-apps/
# for details.
client-id: cd74c74af6b5c595f088
# This is the per-service secret used by your service to authenticate
# against your GitHub OAuth application. You can generate a new secret
# under Settings -> Developer settings -> OAuth Apps.
#
# If the integration is set up correctly, in the OAuth application
# settings, you'll see that the secret has been used
# (e.g.: "Last used within the last week").
client-secret: 2c05929edd949d670c3454258bbdbfefb7ba3eb7
logging:
level:
org.springframework.web: DEBUG
org.springframework.security: DEBUG
com.nimbusds: TRACE
---
spring:
error:
whitelabel:
enabled: false
server:
error:
path: /error