Closed boxer-code closed 2 years ago
Hi! It seems like you were trying to access the User Selfservice API (/api/v1/user/*
). This API is for giving user's the chance to change their attributes (Think phone number, address, password, etc.). You have authenticated your client using the client_credentials
grant. Hence there is no user which the client is acting on behalf of.
I assume you want to make changes to either Omejdn or your client using an API?
Since your client is registered as an admin, you could use the Admin API (/api/v1/config/*
) to change the config files.
For more information on the relation between clients and users in OAuth 2.0, please refer to RFC 6749.
Thanks, that solved my problem! I hadn't thought about the difference between a client and an user. It seems like the omejdn admin api is working.
The Problem
My Setup
Insomnia, Git Bash
What I have done up front
I uncommented the relevant lines in scope_mapping.yml and registered a client with the an attribute like:
My clients.yml looks like this:
Then i used the create_test_token.rb script with:
and got this client assertion as an answer:
And used this to create an access token with:
And got an access token as response.
What I expected to happen
To get access to the API by using this access token.
What actually happened
I'm using Insomnia to send a GET Request to the API and used the access token as a bearer token but received a 403 Forbidden.
The quest of trying to solve it
What is your best guess as to what might have happened?
That I forgot something in the configuration of the client or in the setup of the API.
Thanks in advance!