General discussion

obtain a token

Submitted by linas on Wed, 09/04/2024 - 09:28

I can't find an example of how to obtain a token on your website; could you give me a curl example?

I'm looking for something like this.

curl -X POST \
  https://your-auth-server.com/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "username=user" \
  -d "password=****" \
  -d "realm=provider/default-idp-2" \
  -d "client_id=registered-app-client-id" \
  -d "client_secret=registered-app-client-secret" \
  -d "grant_type=password"