authentik.enterprise.providers.ws_federation.processors.constants
1from authentik.common.saml.constants import NS_MAP as _map 2from authentik.enterprise.providers.ws_federation.models import WSFederationSAMLVersion 3 4WS_FED_ACTION_SIGN_IN = "wsignin1.0" 5WS_FED_ACTION_SIGN_OUT = "wsignout1.0" 6WS_FED_ACTION_SIGN_OUT_CLEANUP = "wsignoutcleanup1.0" 7 8WS_FED_QS_ACTION = "wa" 9WS_FED_QS_REALM = "wtrealm" 10WS_FED_QS_REPLY = "wreply" 11WS_FED_POST_KEY_ACTION = "wa" 12WS_FED_POST_KEY_RESULT = "wresult" 13WS_FED_POST_KEY_CONTEXT = "wctx" 14 15WSS_TOKEN_TYPE_SAML2 = ( 16 "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0" # nosec 17) 18WSS_TOKEN_TYPE_SAML11 = ( 19 "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1" # nosec 20) 21WSS_KEY_IDENTIFIER_SAML_ID = ( 22 "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID" 23) 24 25WSS_TOKEN_TYPE_BY_VERSION = { 26 WSFederationSAMLVersion.SAML_1_1: WSS_TOKEN_TYPE_SAML11, 27 WSFederationSAMLVersion.SAML_2_0: WSS_TOKEN_TYPE_SAML2, 28} 29 30NS_WS_FED_PROTOCOL = "http://docs.oasis-open.org/wsfed/federation/200706" 31NS_WS_FED_TRUST = "http://schemas.xmlsoap.org/ws/2005/02/trust" 32NS_WSI = "http://www.w3.org/2001/XMLSchema-instance" 33NS_ADDRESSING = "http://www.w3.org/2005/08/addressing" 34NS_POLICY = "http://schemas.xmlsoap.org/ws/2004/09/policy" 35NS_WSS_SEC = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" 36NS_WSS_UTILITY = ( 37 "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 38) 39NS_WSS_D3P1 = "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" 40 41NS_MAP = { 42 **_map, 43 "fed": NS_WS_FED_PROTOCOL, 44 "xsi": NS_WSI, 45 "wsa": NS_ADDRESSING, 46 "t": NS_WS_FED_TRUST, 47 "wsu": NS_WSS_UTILITY, 48 "wsp": NS_POLICY, 49 "wssec": NS_WSS_SEC, 50 "d3p1": NS_WSS_D3P1, 51}
WS_FED_ACTION_SIGN_IN =
'wsignin1.0'
WS_FED_ACTION_SIGN_OUT =
'wsignout1.0'
WS_FED_ACTION_SIGN_OUT_CLEANUP =
'wsignoutcleanup1.0'
WS_FED_QS_ACTION =
'wa'
WS_FED_QS_REALM =
'wtrealm'
WS_FED_QS_REPLY =
'wreply'
WS_FED_POST_KEY_ACTION =
'wa'
WS_FED_POST_KEY_RESULT =
'wresult'
WS_FED_POST_KEY_CONTEXT =
'wctx'
WSS_TOKEN_TYPE_SAML2 =
'http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0'
WSS_TOKEN_TYPE_SAML11 =
'http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1'
WSS_KEY_IDENTIFIER_SAML_ID =
'http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID'
WSS_TOKEN_TYPE_BY_VERSION =
{WSFederationSAMLVersion.SAML_1_1: 'http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1', WSFederationSAMLVersion.SAML_2_0: 'http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0'}
NS_WS_FED_PROTOCOL =
'http://docs.oasis-open.org/wsfed/federation/200706'
NS_WS_FED_TRUST =
'http://schemas.xmlsoap.org/ws/2005/02/trust'
NS_WSI =
'http://www.w3.org/2001/XMLSchema-instance'
NS_ADDRESSING =
'http://www.w3.org/2005/08/addressing'
NS_POLICY =
'http://schemas.xmlsoap.org/ws/2004/09/policy'
NS_WSS_SEC =
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'
NS_WSS_UTILITY =
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'
NS_WSS_D3P1 =
'http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd'
NS_MAP =
{'samlp': 'urn:oasis:names:tc:SAML:2.0:protocol', 'saml': 'urn:oasis:names:tc:SAML:2.0:assertion', 'ds': 'http://www.w3.org/2000/09/xmldsig#', 'md': 'urn:oasis:names:tc:SAML:2.0:metadata', 'xenc': 'http://www.w3.org/2001/04/xmlenc#', 'fed': 'http://docs.oasis-open.org/wsfed/federation/200706', 'xsi': 'http://www.w3.org/2001/XMLSchema-instance', 'wsa': 'http://www.w3.org/2005/08/addressing', 't': 'http://schemas.xmlsoap.org/ws/2005/02/trust', 'wsu': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', 'wsp': 'http://schemas.xmlsoap.org/ws/2004/09/policy', 'wssec': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'd3p1': 'http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd'}