Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zamd
Created June 1, 2017 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zamd/3567c30b8fc3f505fb66886ed8126c55 to your computer and use it in GitHub Desktop.
Save zamd/3567c30b8fc3f505fb66886ed8126c55 to your computer and use it in GitHub Desktop.
Sample request to create Auth0 Saml connection with samlp metadata

#Saml-connection creation

###Payload

curl -H "Authorization: Bearer ..-yiSm0uYkVArSrXYojrkhwvI1dPzcZRlDQ---" -X POST  -H "Content-Type: application/json" -d '{"name":"pkr-tenant","strategy":"samlp","options":{"metadataUrl":"https://pkr.myauth0.com/samlp/metadata/vj4HB0DougzOsvUOQrLE6mLSyTl9GeIY"}}' https://zulfiqar.myauth0.com/api/v2/connections`
{
  "name": "pkr-tenant",
  "strategy": "samlp",
  "options": {
    "metadataUrl": "https://pkr.myauth0.com/samlp/metadata/vj4HB0DougzOsvUOQrLE6mLSyTl9GeIY"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment