Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608b8ae commit 10f72abCopy full SHA for 10f72ab
auth0/v2/authentication/enterprise.py
@@ -1,18 +1,17 @@
1
-import requests
+from .base import AuthenticationBase
2
3
4
-class Enterprise(object):
+class Enterprise(AuthenticationBase):
5
6
def __init__(self, domain):
7
self.domain = domain
8
9
- def saml_login(self, client_id, connection):
10
- """
11
+ def saml_metadata(self, client_id):
+ return self.get(url='https://%s/samlp/metadata/%s' % (self.domain,
+ client_id))
12
13
- return requests.get(
14
- 'https://%s/samlp/%s' % (self.domain, client_id),
15
- params={'connection': connection}
16
- )
+ def wsfed_metadata(self):
+ url = 'https://%s/wsfed/FederationMetadata' \
+ '/2007-06/FederationMetadata.xml'
17
18
- def saml_metadata(self,
+ return self.get(url=url % self.domain)
0 commit comments