discourse/plugins/discourse-oauth2-basic/config/settings.yml
Penar Musaraj 8cbc3bcdfc
UX: Better separate login and authentication settings (#33711)
This splits the Login and Authentication admin page into multiple
sections: Settings, social logins, DiscourseConnect, OAuth2.0, OIDC.
Internal ticket `t/161648`

This PR also adds a new extension point for plugins that want to extend
this area of the app.

```
register_site_setting_area("oauth2")
register_admin_config_login_route("oauth2")
```

Adding this to a plugin allows it to extend both the setting areas
(existing functionality) and add a tab to this admin settings screen via
`register_admin_config_login_route`.
2025-10-09 15:29:21 -04:00

100 lines
2 KiB
YAML

login:
oauth2_enabled:
default: false
client: true
area: "oauth2"
oauth2_client_id:
default: ""
area: "oauth2"
oauth2_client_secret:
default: ""
secret: true
area: "oauth2"
oauth2_authorize_url:
default: ""
area: "oauth2"
oauth2_authorize_signup_url:
default: ""
area: "oauth2"
oauth2_token_url:
default: ""
area: "oauth2"
oauth2_token_url_method:
default: "POST"
type: enum
choices:
- GET
- POST
- PUT
area: "oauth2"
oauth2_callback_user_id_path:
default: ""
area: "oauth2"
oauth2_callback_user_info_paths:
type: list
default: "id"
area: "oauth2"
oauth2_fetch_user_details:
default: true
validator: "Oauth2FetchUserDetailsValidator"
area: "oauth2"
oauth2_user_json_url:
default: ""
area: "oauth2"
oauth2_user_json_url_method:
default: "GET"
type: enum
choices:
- GET
- POST
area: "oauth2"
oauth2_json_user_id_path:
default: ""
area: "oauth2"
oauth2_json_username_path:
default: ""
area: "oauth2"
oauth2_json_name_path:
default: ""
area: "oauth2"
oauth2_json_email_path:
default: ""
area: "oauth2"
oauth2_json_email_verified_path:
default: ""
area: "oauth2"
oauth2_json_avatar_path:
default: ""
area: "oauth2"
oauth2_email_verified:
default: false
area: "oauth2"
oauth2_overrides_email:
default: false
area: "oauth2"
oauth2_send_auth_header:
default: true
area: "oauth2"
oauth2_send_auth_body:
default: true
area: "oauth2"
oauth2_debug_auth:
default: false
area: "oauth2"
oauth2_authorize_options:
default: "scope"
type: list
area: "oauth2"
oauth2_scope:
default: ""
area: "oauth2"
oauth2_button_title:
default: "with OAuth2"
client: true
area: "oauth2"
oauth2_allow_association_change:
default: false
area: "oauth2"
oauth2_disable_csrf:
default: false
hidden: true