Skip to main content

A package for handling Xecurify authentication

Project description

Oauth signin

This is just a simple oauth login package

  1. first install the package using the command "pip install my-oauth-package==1.0.4" in the terminal
  2. After installing import this library to your views.py to use it using "from my_oauth_package.test import OAuthManager" where my_oauth_package is the package file name, test is python file in that folder and OAuthManager is the class name
  3. After importing the library code your creditials which are client_id, client_secret, base_url, redirect_uri and certificate
  4. As my library has two functions so to access that you have to create two functions. In that, you have to create the instance of the class for using the functionality. And then, return that instance of class to the library function
    ex of the function
    def oauth_login(request): manager = OAuthManager(client_id, client_secret, base_url, redirect_uri, certificate) print("oauth login") return manager.oauth_login(request)

def callback(request): manager = OAuthManager(client_id, client_secret, base_url, redirect_uri, certificate) print("xecurify callback") return manager.xecurify_callback(request)
  1. Create the route to access in urls.py by giving url, view function and name

('oauth_login/', views.oauth_login, name='oauth_login')
('auth/callback/', views.callback, name='callback') 6) Run the terminal using "python manage.py runserver" and then go to the 'xecurify_callback' route for oauth

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my_oauth_package-1.1.9.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

my_oauth_package-1.1.9-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file my_oauth_package-1.1.9.tar.gz.

File metadata

  • Download URL: my_oauth_package-1.1.9.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for my_oauth_package-1.1.9.tar.gz
Algorithm Hash digest
SHA256 58349dc6d956dd32b7e5373bc6d430db0f787ab2dcd93a4e4bf057a5f49fea05
MD5 aaf7e0f8e992e42f9d2ea382203aa0fe
BLAKE2b-256 d83d82b814698e7f910fad569bcaadc2c1b7c2f0eb9f2b9c8f8474ecc0e6567c

See more details on using hashes here.

File details

Details for the file my_oauth_package-1.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for my_oauth_package-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a3656d6cec20008e7b48266449c01c8335fc92d4e2a28e4ebd07d5b6c111a6a8
MD5 57753e91c4d2deaacedc7ab46ad742f5
BLAKE2b-256 d54503c9a55ee5ed3f43175b30c0c4bc7815e36aa8f0761269004ae6aebfaab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page