Name | afex-sso JSON |
Version |
0.0.62
JSON |
| download |
home_page | |
Summary | For integrating sso |
upload_time | 2023-07-24 12:03:52 |
maintainer | |
docs_url | None |
author | AFEX NIGERIA |
requires_python | >=3.7 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# AFEX SSO (DJANGO)
## Simple Integration (usage)
instantiate the SSO class
from AFEX_SSO import SSO
sso = SSO()
def get_user_details(View):
sso_instance = sso.check_credentials(session_key)
get_user = sso_instance['data'].get('user')
'''
# other codes
'''
def logout(View):
# get user email
email = " "
signout = sso.sign_out(email)
'''
# other codes
'''
## Keys
- session_key : sent from the service provider client (frontend) after successful authentication on the sso
## SETTINGS
- set the sso details on settings.py as shown below
- SSO_URL = ""
- SSO_API_KEY = ""
- SSO_SECRET_KEY = ""
### Sample Response
{
"responseCode": "100",
"data": {
"session_identifier": "SES_2c73ff51cfe5c5a68fc58934c9be3b",
"user": {
"email": "example@africaexchange.com",
"first_name": "Ayodeji",
"last_name": "Balogun",
"photo": null,
"tribe": null,
"designation": "Software Developer",
"email_aliases": [
"example@afexnigeria.com",
]
}
},
"message": "Successfully Retrieved"
}
Raw data
{
"_id": null,
"home_page": "",
"name": "afex-sso",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "AFEX NIGERIA",
"author_email": "it@africaexchange.com",
"download_url": "https://files.pythonhosted.org/packages/c8/69/db31e725f0446206c0a2e43c51a08a874346017928e188297b07b9fb4a50/afex-sso-0.0.62.tar.gz",
"platform": null,
"description": "\r\n# AFEX SSO (DJANGO)\r\n\r\n\r\n\r\n\r\n## Simple Integration (usage)\r\n\r\ninstantiate the SSO class\r\n\r\n\r\n from AFEX_SSO import SSO\r\n sso = SSO()\r\n\r\n def get_user_details(View):\r\n sso_instance = sso.check_credentials(session_key)\r\n get_user = sso_instance['data'].get('user')\r\n '''\r\n # other codes\r\n '''\r\n\r\n def logout(View):\r\n # get user email\r\n email = \" \"\r\n signout = sso.sign_out(email)\r\n '''\r\n # other codes\r\n '''\r\n\r\n## Keys\r\n\r\n- session_key : sent from the service provider client (frontend) after successful authentication on the sso \r\n\r\n## SETTINGS\r\n\r\n- set the sso details on settings.py as shown below \r\n - SSO_URL = \"\"\r\n - SSO_API_KEY = \"\"\r\n - SSO_SECRET_KEY = \"\"\r\n\r\n### Sample Response\r\n\r\n {\r\n \"responseCode\": \"100\",\r\n \"data\": {\r\n \"session_identifier\": \"SES_2c73ff51cfe5c5a68fc58934c9be3b\",\r\n \"user\": {\r\n \"email\": \"example@africaexchange.com\",\r\n \"first_name\": \"Ayodeji\",\r\n \"last_name\": \"Balogun\",\r\n \"photo\": null,\r\n \"tribe\": null,\r\n \"designation\": \"Software Developer\",\r\n \"email_aliases\": [\r\n \"example@afexnigeria.com\",\r\n ]\r\n }\r\n },\r\n\r\n \"message\": \"Successfully Retrieved\"\r\n\r\n }\r\n\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "For integrating sso",
"version": "0.0.62",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0244a554d5e6685f18d5ef1a8e9a72fb3ecceccdcee4983e0c4e5353661c5e74",
"md5": "2d9fdfa195399618b98ef6a12c223b21",
"sha256": "ffd0cfc26a7d214cfc2e8026415156a130c59c55b2d8c1bdb4e3e272db5001f2"
},
"downloads": -1,
"filename": "afex_sso-0.0.62-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2d9fdfa195399618b98ef6a12c223b21",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5066,
"upload_time": "2023-07-24T12:03:42",
"upload_time_iso_8601": "2023-07-24T12:03:42.003933Z",
"url": "https://files.pythonhosted.org/packages/02/44/a554d5e6685f18d5ef1a8e9a72fb3ecceccdcee4983e0c4e5353661c5e74/afex_sso-0.0.62-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c869db31e725f0446206c0a2e43c51a08a874346017928e188297b07b9fb4a50",
"md5": "2eb8758808d6371aadae76ded419e0c0",
"sha256": "19384a23fcdb84a135f6df1a1d75103e9a495f5ba11807aea609f21a8a45b940"
},
"downloads": -1,
"filename": "afex-sso-0.0.62.tar.gz",
"has_sig": false,
"md5_digest": "2eb8758808d6371aadae76ded419e0c0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 4725,
"upload_time": "2023-07-24T12:03:52",
"upload_time_iso_8601": "2023-07-24T12:03:52.530940Z",
"url": "https://files.pythonhosted.org/packages/c8/69/db31e725f0446206c0a2e43c51a08a874346017928e188297b07b9fb4a50/afex-sso-0.0.62.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-24 12:03:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "afex-sso"
}