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
defget_client_role(self, client_id, role_name):
"""Get client role id by name. This is required for further actions with this role. RoleRepresentation https://www.keycloak.org/docs-api/24.0.2/rest-api/index.html#_rolerepresentation :param client_id: id of client (not client-id) :type client_id: str :param role_name: role's name (not id!) :type role_name: str :return: role_id :rtype: str """params_path= {
"realm-name": self.connection.realm_name,
"id": client_id,
"role-name": role_name,
}
data_raw=self.connection.raw_get(
urls_patterns.URL_ADMIN_CLIENT_ROLE.format(**params_path)
)
returnraise_error_from_response(data_raw, KeycloakGetError)
I might as well open a PR for this issue if nobody picks it up before I find some time for it.
Cheers 😉
The text was updated successfully, but these errors were encountered:
Hello,
I've noticed that the inline documentation for the
get_client_role
method is incorrect. See:python-keycloak/src/keycloak/keycloak_admin.py
Line 2109 in 972c0ab
I might as well open a PR for this issue if nobody picks it up before I find some time for it.
Cheers 😉
The text was updated successfully, but these errors were encountered: