-
Notifications
You must be signed in to change notification settings - Fork 54
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
keycloak api questions #4
Comments
As also stated in issue #5 there is currently no support in the library to create a new REALM using the API. However you can for now create one using the Keycloak Admin (https://www.keycloak.org/docs/latest/server_admin/index.html#_create-realm). Support for REALM creation can be build in the Realms client (
I am not entirely sure about your question but I think you mean: why do you have to supply a token when the library has all the tools to authenticate and refresh a given Access token?
And the client get authenticated by passing this method using the
In that way you always have a fresh If you don't need al this fancy stuff you can also pass an active
Next to the
Yes that's the way to do it :) To make it even better, you have to refresh the access_token now and then using the refresh token. |
Hi Peter,
thanks for your project python-keycloak-client. I would like to ask a few questions... .
in your documentation I can see only a few methods/apis which can I use for Keycloak. I'm looking for some way how can I create e.g. new 'realm', 'component - like LDAP provider' .. is there some generic for it?
some methods in your project have as parameter 'token' ... Could you please explain why it's necessary to pass client into the methods? I thought that token is obtained/refreshed by default according the settings/credentials for realms object / oaidc_client. Why is necessary put token directly into method?
how can I obtain the token .. there is 'client_credentials' method but returns more than access_token. ... so I would like to know what is correct way for using e.g. 'userinfo(token)' ...
should I call 'client_credentials' first and parse 'access_token' from respnose... and than use this 'access_token' as token for userinfo method? Am I right or is there better/straightforward way how to do it?
Thanks Peter!
Ivan
The text was updated successfully, but these errors were encountered: