Debian Codegraph @

src/auth0/authentication/enterprise.py

raw symbols SCIP
1 from typing import Any
2
3 from .base import AuthenticationBase
4
5
6 class Enterprise(AuthenticationBase):
7
8 """Enterprise endpoints.
9
10 Args:
11 domain (str): Your auth0 domain (e.g: my-domain.us.auth0.com)
12 """
13
14 def saml_metadata(self) -> Any:
15 """Get SAML2.0 Metadata."""
16
17 return self.get(
18 url="{}://{}/samlp/metadata/{}".format(
19 self.protocol, self.domain, self.client_id
20 )
21 )
22
23 def wsfed_metadata(self) -> Any:
24 """Returns the WS-Federation Metadata."""
25
26 url = "{}://{}/wsfed/FederationMetadata/2007-06/FederationMetadata.xml"
27
28 return self.get(url=url.format(self.protocol, self.domain))