# srvCloud-keycloak Library #
## What is this? ##
The module allows you to work with keycloak
### Using ###
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the `from keycloak_srvcloud import Keycloak` construct).
Examples of all operations:
Init class:
keycloak = Keycloack(keycloak_host, keycloak_port, realm_name, client_id, client_secret)
Init session:
cookies = keycloak.auth('user', 'password')
Refresh token:
cookies = keycloak.refresh_token(cookies['access_token'], cookies['refresh_token'])
Close session:
keycloak.logout(cookies['access_token'], cookies['refresh_token'])
Get introspect:
introspect = keycloak.introspect(cookies['access_token'])
## Developer ##
Viktor Podlevski
My site: [github](https://github.com/VITca64rus)
Raw data
{
"_id": null,
"home_page": "https://github.com/VITca64rus/keycloak_srvcloud.git",
"name": "keycloak-srvcloud",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "files speedfiles",
"author": "vitca64rus",
"author_email": "vitca64rus@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/18/e3/6f44e896ceab85c82cb5c40ee2abb4d5d8405f9649c1b8542ec2d0c427bc/keycloak_srvcloud-0.0.8.tar.gz",
"platform": null,
"description": "# srvCloud-keycloak Library #\n\n## What is this? ##\nThe module allows you to work with keycloak\n\n### Using ###\n\n\nUsing the library is as simple and convenient as possible:\n\nLet's import it first:\nFirst, import everything from the library (use the `from keycloak_srvcloud import Keycloak` construct).\n\nExamples of all operations:\n\nInit class:\n\n keycloak = Keycloack(keycloak_host, keycloak_port, realm_name, client_id, client_secret)\n\n\nInit session:\n\n cookies = keycloak.auth('user', 'password')\n\nRefresh token:\n\n cookies = keycloak.refresh_token(cookies['access_token'], cookies['refresh_token'])\n\nClose session:\n\n keycloak.logout(cookies['access_token'], cookies['refresh_token'])\n\nGet introspect:\n\n introspect = keycloak.introspect(cookies['access_token'])\n\n## Developer ##\nViktor Podlevski\n\nMy site: [github](https://github.com/VITca64rus) \n\n",
"bugtrack_url": null,
"license": "",
"summary": "Lib for interacting with keycloak from srvCloud",
"version": "0.0.8",
"project_urls": {
"GitHub": "https://github.com/VITca64rus/keycloak_srvcloud.git",
"Homepage": "https://github.com/VITca64rus/keycloak_srvcloud.git"
},
"split_keywords": [
"files",
"speedfiles"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "18e36f44e896ceab85c82cb5c40ee2abb4d5d8405f9649c1b8542ec2d0c427bc",
"md5": "abbdfd8656a4a05cce8bc760f9a6e582",
"sha256": "08aaf75e223e97a9b353f10909ca8f3ed8842162286310af8b75f587178bf309"
},
"downloads": -1,
"filename": "keycloak_srvcloud-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "abbdfd8656a4a05cce8bc760f9a6e582",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4278,
"upload_time": "2024-02-09T21:11:17",
"upload_time_iso_8601": "2024-02-09T21:11:17.054391Z",
"url": "https://files.pythonhosted.org/packages/18/e3/6f44e896ceab85c82cb5c40ee2abb4d5d8405f9649c1b8542ec2d0c427bc/keycloak_srvcloud-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-09 21:11:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "VITca64rus",
"github_project": "keycloak_srvcloud",
"github_not_found": true,
"lcname": "keycloak-srvcloud"
}