A package for handling Xecurify authentication
Project description
Oauth signin
This is just a simple oauth login package
- first install the package using the command "pip install my-oauth-package==1.0.4" in the terminal
- 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
- After importing the library code your creditials which are client_id, client_secret, base_url, redirect_uri and certificate
- 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)
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file my_oauth_package-2.3.3.tar.gz.
File metadata
- Download URL: my_oauth_package-2.3.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcdd87c6befd46b1884330c01624d92f75c28a54106e510761362c3bca502c6d
|
|
| MD5 |
3d54c91ec73bafac588e663c44cf36de
|
|
| BLAKE2b-256 |
7de57247da13c9671b255932215fa96fac55d0baa152d767d87f1712774a27b1
|
File details
Details for the file my_oauth_package-2.3.3-py3-none-any.whl.
File metadata
- Download URL: my_oauth_package-2.3.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
793c8d442397938dbab03cfab615963a6189817bda615b70177979c453c17afa
|
|
| MD5 |
11ce4904021839821111844a7c75d1e7
|
|
| BLAKE2b-256 |
a8d19eb7563ea1b1286d630cf5265c7cc9955a9732560312e2b064bfcaedd9a2
|