Sessions

class keycloak_admin_aio._resources.sessions.Sessions

Provides realm sessions.

get_url()

Get the resource’s url.

Return type:

str

Sessions by id

class keycloak_admin_aio._resources.sessions.by_id.SessionsById

Realm sessions by id.

from keycloak_admin_aio import KeycloakAdmin

kc: KeycloakAdmin  # needs to be instantiated
sesson_id: str  # uuid
get_url()

Get the resource’s url.

Return type:

str

async delete()

Terminate a session by id.

await kc.sessions.by_id(sesson_id).delete()