Update Note to configure SSO authored by 过纯中's avatar 过纯中
```ruby ```ruby
options = { options = {
"display_name"=>"Thape", name: "openid_connect",
"host"=>"sso.thape.com.com", scope: %i[openid departments positions main_position clerk_code chinese_name phone],
"identifier"=>"", response_type: "code",
"secret"=>"", uid_field: "email",
"authorization_endpoint" => "/oauth2/authorize", issuer: "https://sso.thape.com.cn",
"token_endpoint" => "/oauth2/token", client_auth_method: "query",
"userinfo_endpoint" => "/oauth2/userinfo", discovery: true,
"jwks_uri": '/oauth/discovery/keys' "client_options": {
"display_name"=>"Thape",
"host"=>"sso.thape.com.com",
"identifier"=>"",
"secret"=>"",
"authorization_endpoint" => "/oauth2/authorize",
"token_endpoint" => "/oauth2/token",
"userinfo_endpoint" => "/oauth2/userinfo",
"jwks_uri": '/oauth/discovery/keys'
}
} }
Setting.plugin_openproject_openid_connect = Hash(Setting.plugin_openproject_openid_connect || {}).deep_merge({
"providers" => {
"openid_connect" => options
}
})
``` ```
\ No newline at end of file