Skip to content

Python Integration with Single Sign On (SSO) Identity Server.

License

Notifications You must be signed in to change notification settings

kunsam002/vgg_sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Venture Garden Group (Vibranium Valley) Single Sign On (SSO) Library

VGGSSO is a custom SSO (Single Sign On) library to be used by all (Strategic Business Units) SBUs, for authentication and authorization within the VGG eco-system connecting with the SSO Identity Server.

Installation

Use the package manager pip to install vgg_sso.

pip install vgg-gd-sso

Usage

Setup the folowing configuration variables to enable access to the SSO Application Server

# In the config.py / settings.py file

VGG_SSO_CLIENT_ID="clientId",
VGG_SSO_CLIENT_SECRET="clientSecret",
VGG_SSO_CLIENT_RO_ID="clientResourceOwnerId",
VGG_SSO_CLIENT_RO_SECRET="clientResourceOwnerSecret"
TOKEN_BASE_URL="<token_base_url>" #Optional parameter as library already handles that depending on the debug value
API_BASE_URL="<api_base_url>" #Optional parameter as library already handles that depending on the debug value

Initialization of the library with respective python application

from vgg_sso import VGGSSO

# Set debug as True for staging environment and False for production environment
# Set config_data to be a dictionary with keys representing the configuration variables

config_data = dict(
    VGG_SSO_CLIENT_ID="clientId",
    VGG_SSO_CLIENT_SECRET="clientSecret",
    VGG_SSO_CLIENT_RO_ID="clientResourceOwnerId",
    VGG_SSO_CLIENT_RO_SECRET="clientResourceOwnerSecret",
    TOKEN_BASE_URL="<token_base_url>",
    API_BASE_URL="<api_base_url>"
)

vgg_sso = VGGSSO(debug=True, config_data=config_data)

Contributing

Pull requests are welcome. For major changes, please open an issue first or contact the developer to discuss what you would like to change.

Please make sure to update tests as appropriate.

Dependencies

Python3

urllib

About

Python Integration with Single Sign On (SSO) Identity Server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages