hey @Herxagon If I get you right you want to get the response for a human user. If you want to read data from a user which is not the service account you can use the GetUserByIDGetUserByID call from the management api
@adlerhurst I think our example client on go (examples/auth/) is wrong since it asks for a JWT key. IMO only the users token is relevant when calling the Auth API
The auth api will always returns data about the user currently logged in which is the service user when using jwt profile. Maybe I have a lack about oauth jwt profile flow?
Currently zitadel-go implements jwtprofile flow which is used to authenticate service users (@FFO please correct me if I'm wrong). zitadel-go is currently not able to call the zitadel api on behalf of a user, it sends the token of the service, that's why you are not able to overwrite the authorisation header. If you overwrite the header, the flow does not correspond to the token received.
A frontend like the zitadel console or your http client implement different auth flows which allows them to use the token of the logged in user, that's why they get the information of the logged in user on /users/me
Currently I can only use the auth-api client to manipulate or read the service user. I am not able to call the api on behalf of a user, I'm not sure if this makes sense. In my opinion it wo...