-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow usage of personal access tokens besides JWT Profile #115
Comments
@hifabienne @livio-a FYI |
Hello, |
No not ATM, but out of curiosity what is hindering you to use a keyfile (the json zitadel generates for you)? |
I am using the access token of a user to retrieve the list of the organizations it has access to, but I need to introspect the token. Probably the same as #186 I think, with the PR linked |
The introspection endpoint needs a client authentication, in zitadel called an "api client" which will give you a json with a private key. IMO it should be sufficient to setup the api client json (as key) and then to pass the token you have from the user to the sdk. Somewhat like in this example https://github.com/zitadel/zitadel-go/blob/main/example/http/http.go |
I need to execute request against Zitadel API with the context of the user. I'm using it's PAT to do this. This is fine by me, But I think maybe some methods could be renamed as we are not exactly using "JWT" to access the API. The keyfile could be used, but I would also like the ability to use env vars for example (unrelated issue) |
I think we should also allow to use PATs with this library and not only JWT profile.
The text was updated successfully, but these errors were encountered: