Gemini Lasswell
68dea8051a
Handle 'Token is not active' error in refresh_token
If a token is acquired but not used before it times out,
Keycloak will return a 400 response with the message
'Token is not active'. Change refresh_token to handle
this error by getting a new token.
4 years ago
Evgeni Enchev
19af6bceda
improve comment
4 years ago
Evgeni Enchev
0c26781a09
add client-level operations for group roles
4 years ago
Marcos Pereira
c135a4ebb3
Fixed linter.
4 years ago
Christian Müller
1f5e9ad2e4
fixing issue #91
and be backwards compatible with older keycloak versions
4 years ago
Paolo Romolini
50b65c06a2
Add update and delete role by name
Add 'Update a role' and 'Delete a role' by name
and without passing the client parameter
5 years ago
Shady Nawara
4f7069b675
Modified update_client & create_realm_role to use keycloak_admin raw_put/post
Modified update_client & create_realm_role to use the keycloak_admin raw_put/post instead of the connection's raw_put/post directly to allow for token refresh
5 years ago
Romain Philibert
24fc50fae8
fix keys url
5 years ago
Romain Philibert
b1ef1d3dfd
fix indent
5 years ago
Romain Philibert
77d5325c07
fixes + add get_keys
5 years ago
Romain Philibert
e03a1ba9be
feat: add components
5 years ago
Matthew DuCharme
488b4fa8e1
Added routes for deleting and updating realms
5 years ago
Romain Philibert
43a7a3943b
Add support for Client Credentials Grant in KeycloakAdmin
5 years ago
Romain Philibert
505d0e5772
Add generate_client_secrets
5 years ago
Christian Müller
d47131d5ab
make data-parameter optional
Fixing issue https://github.com/marcospereirampj/python-keycloak/issues/65
5 years ago
Paolo Romolini
7dff2e2b75
Add group realm roles delete, get and add
Signed-off-by: Paolo Romolini
Signed-off-by: Tamara Noncentini
5 years ago
twsl
51b7f29dd4
Fixed mixed up urls
5 years ago
twsl
d743e43065
Added public key method
5 years ago
rike e
fa9f4520d5
include data in raw_delete request
data was missing in raw_delete request: requests with json bodies like in "delete_client_roles_of_user" won't work
5 years ago
Josh Bode
8436dbc19d
Set session `auth` to trivial function
Sets the session to not add "basic" auth if entry for keycloak host
exists in users `.netrc` (`requests` causes `Authorization: Basic ...`
header to be added if an entry exists in `.netrc` by default)
see: https://requests.readthedocs.io/en/master/api/#requests.Session.auth
5 years ago
e6646
69d29968ee
Updated documentation and links
5 years ago
Marcos Pereira
df51e0e0c3
Fixed merge with external branch.
5 years ago
Guillaume Troupel
bf30c0a409
adds user_realm_name to KeycloakAdmin
fixes #41
Adds a optional new parameter _user_realm_name_ that takes _realm_name_ value if not defined.
The admin token is retrieved from the given _user_realm_name_ but all methods are run under _realm_name_. This allows to have an admin user in another realm (ie: master).
5 years ago
Nicolas Marcq
e16e054bf1
[Feature] add custom headers. Closes #38
5 years ago
Guillaume Troupel
1e806554b5
Also retry on POST
5 years ago
Guillaume Troupel
045dfb3576
requests' session retry once to refresh TCP connection closed by Keycloak server
fixes #36
5 years ago
Thomas Anderson
4404f06aa6
Add function to KeycloakAdmin to add a role to a realm
5 years ago
Marcos Pereira
8fd315d11a
Changed license in init files.
5 years ago
Guillaume Troupel
9080c79a4e
return user id on user creation
5 years ago
Andreas Bleuler
1c03f1a994
Add update method for clients
5 years ago
Andreas Bleuler
f9eb637456
Fix copy-pasted docstring
5 years ago
Guillaume Troupel
79316080a6
Update keycloak_admin.py
fixes auto_refresh_token property not using setter on KeyclaokAdmin initialization
5 years ago
Guillaume Troupel
d72340d677
Update keycloak_admin.py
automatically refresh stale token
5 years ago
Kurt Kremitzki
3f23e3a0cf
Fix missing import for assign_realm_roles method
5 years ago
Marcos Pereira
ef5a316820
Fixed create group.
5 years ago
Andrea Volpi
d2b15a734e
Implement assign_realm_roles method
Increment package version
Update docstring
Remove client_id from path params
Fix raw_post with correct url
5 years ago
Akos Hencz
cad147723d
Add update_group
5 years ago
Akos Hencz
147646e56f
Paginate get_group_members
5 years ago
Akos Hencz
ffdb7509c2
Paginate get_groups
5 years ago
Akos Hencz
2225a1283d
Paginate get_users
5 years ago
Akos Hencz
c767c21177
Add pagination wrapper
5 years ago
Akos Hencz
395d30d9d2
Fix get_subgroups iteration
5 years ago
Kevin Fox
e68bbf2284
Add the option to specify extra key/values to the token endpoint
5 years ago
mattboret
a4a990b7f1
Add support to create a new Realm
6 years ago
Rafael Weingärtner
30e489affd
Create method to list all realms from a Keycloak deployment
6 years ago
Rafael Weingärtner
8d6130ea7b
Create 'get_client_secrets' method
6 years ago
Rafael Weingärtner
4753b2e976
Create methods to retrieve all client scopes, a single client scope, and to add a mapper to a client scope
6 years ago
Anthony Alves
1c4f46d0c6
add ability to log into service account in KeycloakAdmin
6 years ago
Marcos Pereira
638337219c
Fixed the create_client_role and delete_client_role.
6 years ago
Sebastian Wehrmann
b425acbc04
Stick with existing code conventions
6 years ago