Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

afex-sso

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afex-sso

For integrating sso

  • 0.0.62
  • PyPI
  • Socket score

Maintainers
1

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"

}

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc