Last active
April 25, 2019 13:16
-
-
Save Tanver-Hasan/c078f884dde9e139eb7d7e65a99874aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
--url 'https://{YOUR TENANT NAME}.auth0.com/api/v2/connections' \ | |
-H "Authorization: Bearer {Managment API access token}" \ | |
-H "Content-Type: application/json" \ | |
-d '{"name":"{connection name}","strategy":"samlp","options":{"metadataUrl":"{ IDP metadata url}"}}' | |
curl -X POST \ | |
--url 'https://{YOUR TENANT NAME}.auth0.com/api/v2/connections' \ | |
-H "Authorization: Bearer {Managment API access token}" \ | |
-H "Content-Type: application/json" \ | |
-d '{"name":"[CONECTION NAME]","strategy":"samlp","options":{"metadataUrl":"[Metadata URL]","fieldsMap":{"user_id":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn","http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"]}}}'' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mapping example :