Download the PHP package ristekusdi/kisara-php without Composer
On this page you can find all versions of the php package ristekusdi/kisara-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ristekusdi/kisara-php
More information about ristekusdi/kisara-php
Files in ristekusdi/kisara-php
Package kisara-php
Short Description Keycloak Service Account library using PHP
License MIT
Informations about the package kisara-php
Kisara (Keycloak Service Account)
Keycloak Service Account library with minimum PHP version 7.2. Adapted from Keycloak REST API.
All class extends a Base class which is a class to get ADMIN_URL, BASE_URL, REALM, authentication to get token, and ACCESS_TOKEN.
Get Started
In each class, you need to set a config (array value) to get data you need. Here's the available options:
Notes: Admin url and base url in your Keycloak may same url or maybe different.
Available Classes and Methods
Client
get
Get all client with or without parameters.
findById
Get a client by id of client NOT clientId.
store
Store a client.
update
Update a client by id of client NOT clientId.
delete
Delete client by id of client NOT clientId.
getServiceAccountUser
Get service account user from a client with id of client NOT clientId.
userSessions
Get current user sessions that belongs to the client.
ClientRole
get
Get roles of client by id of client NOT clientId. Parameters are optional.
store
Store a role to a client by id of client NOT clientId.
getUsers
Get users from a client role with id of client and role name. Parameters are optional.
getGroups
Get groups from a client role with id of client and role name. Parameters are optional.
ClientSecret
get
Get client secret of client by id of client NOT clientId.
update
Update client secret of client by id of client NOT clientId.
DeviceActivity
get
Get list of devices the user is logged on to.
endAllSession
End all logged in session from device.
endSession
End logged in session from device by session id.
Group
get
Get groups with or without parameters.
findById
Get a single group by id of group.
store
Store a group.
delete
Delete a group by id of group.
members
Get members of group by id of group. Parameters are optional.
getRoleMappings
Get group role mappings by group id.
GroupClientRole
getAvailableRoles
Get available roles of client role in a group.
storeAssignedRoles
Store assigned roles of client role to a group.
getAssignedRoles
Get assigned roles of client role from a group.
deleteAssignedRoles
Delete assigned roles of client role from a group.
getEffectiveRoles
Get effective roles of client role from a group.
Key
get
Get all key from Keycloak realm settings.
getRSA256PublicKey
Get RSA 256 Public Key from Keycloak realm settings.
Role
findById
Find a role by id of role.
update
Update a role by id of role.
delete
Delete a role by id of role.
Session
delete
Delete session logged in user by session id.
User
get
Get users with or without parameters.
findById
Find user by id of user.
store
Store a user.
update
Update a user.
groups
Get groups belong to user with id of user.
resetCredentials
Reset user credentials.
UserClientRole
getAvailableRoles
Get available roles of client role in a user.
storeAssignedRoles
Store assigned roles of client role to a user.
getAssignedRoles
Get assigned roles of client role from a user.
deleteAssignedRoles
Delete assigned roles of client role from a user.
getEffectiveRoles
Get effective roles of client role from a user.
UserGroup
attach
Attach a group to a user.
detach
Detach a group from a user.