providers/proxy: remove deprecated field
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ff64814f40
commit
0a3fade1fd
|
@ -90,12 +90,6 @@ class ProxyOutpostConfigSerializer(ModelSerializer):
|
||||||
"""Proxy provider serializer for outposts"""
|
"""Proxy provider serializer for outposts"""
|
||||||
|
|
||||||
oidc_configuration = SerializerMethodField()
|
oidc_configuration = SerializerMethodField()
|
||||||
forward_auth_mode = SerializerMethodField()
|
|
||||||
|
|
||||||
def get_forward_auth_mode(self, instance: ProxyProvider) -> bool:
|
|
||||||
"""Legacy field for 2021.5 outposts"""
|
|
||||||
# TODO: remove in 2021.7
|
|
||||||
return instance.mode in [ProxyMode.FORWARD_SINGLE, ProxyMode.FORWARD_DOMAIN]
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
@ -117,8 +111,6 @@ class ProxyOutpostConfigSerializer(ModelSerializer):
|
||||||
"basic_auth_user_attribute",
|
"basic_auth_user_attribute",
|
||||||
"mode",
|
"mode",
|
||||||
"cookie_domain",
|
"cookie_domain",
|
||||||
# Legacy field, remove in 2021.7
|
|
||||||
"forward_auth_mode",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
@extend_schema_field(OpenIDConnectConfigurationSerializer)
|
@extend_schema_field(OpenIDConnectConfigurationSerializer)
|
||||||
|
|
|
@ -26694,13 +26694,8 @@ components:
|
||||||
Exclusive with internal_host.
|
Exclusive with internal_host.
|
||||||
cookie_domain:
|
cookie_domain:
|
||||||
type: string
|
type: string
|
||||||
forward_auth_mode:
|
|
||||||
type: boolean
|
|
||||||
readOnly: true
|
|
||||||
deprecated: true
|
|
||||||
required:
|
required:
|
||||||
- external_host
|
- external_host
|
||||||
- forward_auth_mode
|
|
||||||
- name
|
- name
|
||||||
- oidc_configuration
|
- oidc_configuration
|
||||||
- pk
|
- pk
|
||||||
|
|
Reference in New Issue