Update Note to configure SSO authored by 过纯中's avatar 过纯中
## local debug settings
```
options = {
name: "openid_connect",
display_name: "天华单点登录",
scope: %i[openid email profile departments positions main_position],
response_type: "code",
uid_field: "email",
host: "sso-id.com",
identifier: "2RNTuN6ZADbHlD8Yhox2awaZUy0-RckCcByknP_9Uw4",
secret: "p2JqkYWSAU3obaazRCm9c_XlqrmJG7yaIoRiM28XC34",
issuer: "https://sso-id.com",
client_auth_method: "query",
discovery: true
}
Setting.plugin_openproject_openid_connect = Hash({}).deep_merge({
"providers" => {
"openid_connect" => options
}
})
```
## Production settings
```ruby
options = {
name: "openid_connect",
display_name: "天华单点登录",
scope: %i[openid clerk_code chinese_name phone],
response_type: "code",
uid_field: "email",
host: "sso.thape.com.com",
identifier: "",
secret: "",
issuer: "https://sso.thape.com.cn",
client_auth_method: "query",
discovery: true
}
Setting.plugin_openproject_openid_connect = Hash({}).deep_merge({
"providers" => {
"openid_connect" => options
}
})
```
\ No newline at end of file
## local debug settings
```
options = {
name: "openid_connect",
display_name: "天华单点登录",
scope: %i[openid email profile departments positions main_position],
response_type: "code",
uid_field: "email",
host: "sso-id.com",
identifier: "2RNTuN6ZADbHlD8Yhox2awaZUy0-RckCcByknP_9Uw4",
secret: "p2JqkYWSAU3obaazRCm9c_XlqrmJG7yaIoRiM28XC34",
issuer: "https://sso-id.com",
client_auth_method: "query",
discovery: true
}
Setting.plugin_openproject_openid_connect = Hash({}).deep_merge({
"providers" => {
"openid_connect" => options
}
})
```
## Production settings
```ruby
options = {
name: "openid_connect",
display_name: "天华单点登录",
scope: %i[openid clerk_code chinese_name phone],
response_type: "code",
uid_field: "email",
host: "sso.thape.com.com",
identifier: "",
secret: "",
issuer: "https://sso.thape.com.cn",
client_auth_method: "query",
discovery: true
}
Setting.plugin_openproject_openid_connect = Hash({}).deep_merge({
"providers" => {
"openid_connect" => options
}
})
```
# Manual setting
https://github.com/doorkeeper-gem/doorkeeper-openid_connect?tab=readme-ov-file#routes
https://sso.thape.com.cn/.well-known/openid-configuration