hey team, nice to meet you. i'm playing around wit...
# _newcomer
f
hey team, nice to meet you. i'm playing around with oauth2 from ORY IDP and i'm trying to create an identity over REST API based on this https://www.ory.sh/docs/kratos/manage-identities/create-users-identities with a token generated by /oauth2/token based on this https://www.ory.sh/docs/oauth2-oidc/client-credentials. i keep getting this response: { "error": { "code": 401, "status": "Unauthorized", "request": "c2d0eae0-5b79-93bd-bc66-27b8cd92c90d", "reason": "Access token is not active", "message": "Access credentials are invalid" } }
m
Hello @faint-action-73893, to use the admin API you need to create an API key as described here: https://www.ory.sh/docs/concepts/personal-access-token#creating-api-keys Using an OAuth2 client to create client credentials tokens is a completely different service and flow - it has nothing to do with the internal admin API of Ory.
f
You're right, I figured it out at some point yesterday evening when I was browsing through the docs. Thanks for confirming it.