add Generic OAuth
This commit is contained in:
parent
1ec7c893ee
commit
b50640ff3c
1 changed files with 15 additions and 0 deletions
|
@ -191,6 +191,21 @@ org_name = {{ server.auth.get('role', server.auth.anonymous.role) }}
|
||||||
;api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
;api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
||||||
;allowed_domains =
|
;allowed_domains =
|
||||||
|
|
||||||
|
#################################### Generic OAuth ##########################
|
||||||
|
[auth.generic_oauth]
|
||||||
|
{%- if server.auth.engine == 'oauth' or server.auth.get('oauth', {}).get('enabled', False) %}
|
||||||
|
enabled = true
|
||||||
|
client_id = {{ server.auth.get('oauth', {}).get('client_id', 'YOUR_APP_CLIENT_ID') }}
|
||||||
|
client_secret = {{ server.auth.get('oauth', {}).get('client_secret', 'YOUR_APP_CLIENT_SECRET') }}
|
||||||
|
scopes = {{ server.auth.get('oauth', {}).get('scopes', '') }}
|
||||||
|
auth_url = {{ server.auth.get('oauth', {}).get('auth_url', '') }}
|
||||||
|
token_url = {{ server.auth.get('oauth', {}).get('token_url', '') }}
|
||||||
|
api_url = {{ server.auth.get('oauth', {}).get('api_url', '') }}
|
||||||
|
allowed_domains = {{ server.auth.get('oauth', {}).get('allowed_domains', '') }}
|
||||||
|
allow_sign_up = {{ server.auth.get('oauth', {}).get('allow_sign_up', 'true') }}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
#################################### Auth Proxy ##########################
|
#################################### Auth Proxy ##########################
|
||||||
[auth.proxy]
|
[auth.proxy]
|
||||||
{%- if server.auth.engine == 'proxy' or server.auth.get('proxy', {}).get('enabled', False) %}
|
{%- if server.auth.engine == 'proxy' or server.auth.get('proxy', {}).get('enabled', False) %}
|
||||||
|
|
Loading…
Reference in a new issue