afex-sso-0.0.41
توضیحات
For integrating sso
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | afex-sso-0.0.41 |
| نام | afex-sso |
| نسخه کتابخانه | 0.0.41 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AFEX NIGERIA |
| ایمیل نویسنده | it@afexnigeria.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/afex-sso/ |
| مجوز | MIT |
# AFEX SSO (DJANGO)
## simple integration (usage)
instantiate the SSO class
from AFEX_SSO import SSO
validate = SSO(sp_api_key, sp_hash_key, session_key)
def get_user_details(View):
get_user = validate()['data'].get('user')
'''
# other codes
'''
## Keys
- sp_api_key: service provider api key
- sp_hash_key : hashed key with api key ,secret key and an idempotency key (random values or timestamps)
- session_key : sent from the service provider client after successful authentication on the sso
## SETTINGS
- set the sso url on settings.py as **SSO_URL**
SSO_URL = ""
Sample Response
{
"responseCode": "100",
"data": {
"session_identifier": "SES_2c73ff51cfe5c5a68fc58934c9be3b",
"user": {
"email": "togunbiyi@afexnigeria.com"
}
},
"message": "Successfully Retrieved"
}
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.2 | requests |
| >=4.1 | django |
| >=7.0 | pytest |
| >=4.0.2 | twine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl afex-sso-0.0.41:
pip install afex-sso-0.0.41.whl
نصب پکیج tar.gz afex-sso-0.0.41:
pip install afex-sso-0.0.41.tar.gz