providers/proxy: add token_validity field for outpost configuration

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#1462
This commit is contained in:
Jens Langhammer 2021-09-25 15:00:06 +02:00
parent 79b92e764e
commit 28eeb4798e
2 changed files with 12 additions and 7 deletions

View File

@ -127,6 +127,7 @@ class ProxyOutpostConfigSerializer(ModelSerializer):
"basic_auth_user_attribute", "basic_auth_user_attribute",
"mode", "mode",
"cookie_domain", "cookie_domain",
"token_validity",
] ]
@extend_schema_field(OpenIDConnectConfigurationSerializer) @extend_schema_field(OpenIDConnectConfigurationSerializer)

View File

@ -11395,7 +11395,7 @@ paths:
/root/config/: /root/config/:
get: get:
operationId: root_config_retrieve operationId: root_config_retrieve
description: Retrive public configuration options description: Retrieve public configuration options
tags: tags:
- root - root
security: security:
@ -21908,7 +21908,7 @@ components:
access_token_url: access_token_url:
type: string type: string
nullable: true nullable: true
description: URL used by authentik to retrive tokens. description: URL used by authentik to retrieve tokens.
maxLength: 255 maxLength: 255
profile_url: profile_url:
type: string type: string
@ -21983,7 +21983,7 @@ components:
access_token_url: access_token_url:
type: string type: string
nullable: true nullable: true
description: URL used by authentik to retrive tokens. description: URL used by authentik to retrieve tokens.
maxLength: 255 maxLength: 255
profile_url: profile_url:
type: string type: string
@ -25937,7 +25937,7 @@ components:
access_token_url: access_token_url:
type: string type: string
nullable: true nullable: true
description: URL used by authentik to retrive tokens. description: URL used by authentik to retrieve tokens.
maxLength: 255 maxLength: 255
profile_url: profile_url:
type: string type: string
@ -26115,7 +26115,7 @@ components:
description: Allow friends to authenticate, even if you don't share a server. description: Allow friends to authenticate, even if you don't share a server.
plex_token: plex_token:
type: string type: string
description: Plex token used to check firends description: Plex token used to check friends
PatchedPolicyBindingRequest: PatchedPolicyBindingRequest:
type: object type: object
description: PolicyBinding Serializer description: PolicyBinding Serializer
@ -26748,7 +26748,7 @@ components:
description: Allow friends to authenticate, even if you don't share a server. description: Allow friends to authenticate, even if you don't share a server.
plex_token: plex_token:
type: string type: string
description: Plex token used to check firends description: Plex token used to check friends
required: required:
- component - component
- name - name
@ -26843,7 +26843,7 @@ components:
description: Allow friends to authenticate, even if you don't share a server. description: Allow friends to authenticate, even if you don't share a server.
plex_token: plex_token:
type: string type: string
description: Plex token used to check firends description: Plex token used to check friends
required: required:
- name - name
- plex_token - plex_token
@ -27378,6 +27378,10 @@ components:
Exclusive with internal_host. Exclusive with internal_host.
cookie_domain: cookie_domain:
type: string type: string
token_validity:
type: string
description: 'Tokens not valid on or after current time + this value (Format:
hours=1;minutes=2;seconds=3).'
required: required:
- external_host - external_host
- name - name