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
magnificent-energy-493
03/17/2025, 9:28 PM
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
faint-action-73893
03/18/2025, 7:48 AM
You're right, I figured it out at some point yesterday evening when I was browsing through the docs. Thanks for confirming it.