Skip to main content

Pyramid VGID OAuth2

Thư viện cho phép pyramid login thông qua https://id.vatgia.com một cách nhanh chóng

Usage

Để sử dụng, thêm dòng sau đây vào hàm main(…):

config.include(“pyramid_vgid_oauth2”)

Trong development.ini

pyramid_vgid_oauth2.client_id = {Client ID cấp bởi VGID} pyramid_vgid_oauth2.client_secret = {Client Secret cấp bởi VGID} pyramid_vgid_oauth2.put_user_callback = Đường dẫn đến hàm sẽ được gọi để tạo mới User pyramid_vgid_oauth2.base_url = /vgid/oauth (đường dẫn dùng để login trên web hiện tại)

### Callback để tạo mới User

def put_user_callback(acc):

“”” :type acc: dict :return object phai co 1 field la .id “”” pass

### API

request.vgid_access_token

có thể dùng để lấy access_token khi đã đăng nhập

#### Event

  1. pyramid_vgid_oauth2.events.SignIn

  2. pyramid_vgid_oauth2.events.SignOut

1.1.1

  • Add warning for put_user_callback configuration

  • Accept callable configuration for put_user_callback

1.1

  • Add python3 support

1.0.x

  • Packaging

  • Initial version

Metadata

Release files for pyramid_vgid_oauth2 1.1.1

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

Source distribution (sdist)

Source distribution for pyramid_vgid_oauth2 1.1.1
File Size Uploaded Provenance Actions
pyramid_vgid_oauth2-1.1.1.tar.gz 4.2 kB Without provenance Details for pyramid_vgid_oauth2-1.1.1.tar.gz

Release files / pyramid_vgid_oauth2-1.1.1.tar.gz

Download URL pyramid_vgid_oauth2-1.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f8e093ccb6a8bb8c579d7df86b5759580aa5e1d00b8fcd591eac2e55530362d4
BLAKE2b-256 checksum
How to use checksums
7fee2b129768815878f548c44866d2bd5ca7552523efb2b3a021895c42ba0780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyramid_vgid_oauth2 1.1.1

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