Skip to main content

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"

}

Metadata

Release files for afex-sso 0.0.62

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for afex-sso 0.0.62
File Size Uploaded Provenance Actions
afex-sso-0.0.62.tar.gz 4.7 kB Without provenance Details for afex-sso-0.0.62.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for afex-sso 0.0.62
File Interpreter ABI Platform Actions
afex_sso-0.0.62-py3-none-any.whl Python 3 none any Details for afex_sso-0.0.62-py3-none-any.whl

Total release size: 9.8 kB

Release files / afex-sso-0.0.62.tar.gz

Download URL afex-sso-0.0.62.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
19384a23fcdb84a135f6df1a1d75103e9a495f5ba11807aea609f21a8a45b940
BLAKE2b-256 checksum
How to use checksums
c869db31e725f0446206c0a2e43c51a08a874346017928e188297b07b9fb4a50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Release files / afex_sso-0.0.62-py3-none-any.whl

Download URL afex_sso-0.0.62-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffd0cfc26a7d214cfc2e8026415156a130c59c55b2d8c1bdb4e3e272db5001f2
BLAKE2b-256 checksum
How to use checksums
0244a554d5e6685f18d5ef1a8e9a72fb3ecceccdcee4983e0c4e5353661c5e74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Security for afex-sso 0.0.62

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page