You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for making a proper org feature in Keycloak!
We have been using keycloak-org for weeks with this Python client.
I noticed that python-keycloak package automatically refresh token when the token is expired, but this package does not.
Because of this, every time I make a request I have to refresh token (when expired) and create phasetwo.Configuration and phasetwo.ApiClient
keycloak_admin=KeycloakAdmin(server_url="https://my-keycloak-host/auth/",
username='admin',
password='password',
realm_name=realm,
client_id='admin-cli',
verify=True)
# Before making a requestif (keycloak_admin.connection.expires_atisNone) or (datetime.now() >=keycloak_admin.connection.expires_at):
keycloak_admin.connection.refresh_token()
configuration=phasetwo.Configuration(
host="https://app.phasetwo.io/auth/realms"access_token=keycloak_admin.token()
)
client=phasetwo.ApiClient(configuration)
Devs won't notice this until they come across this issue.
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for making a proper org feature in Keycloak!
We have been using keycloak-org for weeks with this Python client.
I noticed that python-keycloak package automatically refresh token when the token is expired, but this package does not.
Because of this, every time I make a request I have to refresh token (when expired) and create
phasetwo.Configuration
andphasetwo.ApiClient
Devs won't notice this until they come across this issue.
The text was updated successfully, but these errors were encountered: