|
|
|
```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 |