Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl -i 'http://localhost:8087/auth/admin/realms' -H "Content-Type: application/json" -H "Authorization: bearer $TOKEN" -d '{"realm":"newrealmlin", "enabled":true}'

This will return the URL of the new realm as an HTTP Location header.

...

curl -i 'http://localhost:8087/auth/admin/realms/newrealm2lin/groups' -H "Content-Type: application/json" -H "Authorization: bearer $TOKEN" -d '{"name":"groupAadmins"}'

Create a client

curl -i 'http://localhost:8087/auth/admin/realms/testlin/clients' -H "Content-Type: application/json" -H "Authorization: bearer $TOKEN" -d '{"clientId":"newclientrevalidation","redirectUris":["httphttps://localhost:8087/*/dev-api.transformcloud.net/revalidation/"], "secret":"longpassword"}'

...

curl -i 'http://localhost:8087/auth/admin/realms/newrealm2lin/users' -H "Content-Type: application/json" -H "Authorization: bearer $TOKEN" -d '{"username":"foo5@example.comjamesH","enabled":true,"email":"foo5@jamesH@example.com","attributes":{"empgmc_numid":["1125"],"NTN":["245/FGS/819"]}}'

...

Adding and removing groups from a user

Use these calls: