Skip to main content

A small package to connect microservices and authenticate user.

Project description

service_auth

A small package to connect microservices and authenticate user. It uses RemoteModel to make http requests with multiple services. Also used to verify tokens to authenticate users.

Quick start

Install the package pip install dj-micro-auth-connect.

Add service_auth in INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'service_auth'
)

Add

ENTITY_BASE_URL_MAP = {
    ...
'auth':'url-for-authentication-service.com',

}

ENTITY_URL_PATH = {
    ...
'verify_token':'api/path/for/endpoint',
}
  • Note: Above mentioned keys must be same to get it work.

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

dj-micro-auth-connect-0.5.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

dj_micro_auth_connect-0.5.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file dj-micro-auth-connect-0.5.2.tar.gz.

File metadata

  • Download URL: dj-micro-auth-connect-0.5.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for dj-micro-auth-connect-0.5.2.tar.gz
Algorithm Hash digest
SHA256 458a82fe31310bf876e6b613fa2932b1eaf57b62692a7df6b6307afdf2b1bd09
MD5 2f605dd0b9beda86e8bb8ffa91cd3d9b
BLAKE2b-256 453d2f62f18de3e5fa470da3293ebe72d2e328f02236a6b2216d59fecd14c497

See more details on using hashes here.

File details

Details for the file dj_micro_auth_connect-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: dj_micro_auth_connect-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for dj_micro_auth_connect-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a16fa7f5a139ee4924f354674ac0c7d96d9ff5fcbd842900279839764b1b8a8
MD5 2b49214fd1a0db77e96a7b4a2cf2ca70
BLAKE2b-256 204622d5cf72c1759171c7d2a28bf2ff507ae1b88556d2609147193c3a0a6015

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