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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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