Skip to main content

A small alastria_auth app for django

Project description

Alastria ID authentication

Añadir en settings.py:

INSTALLED_APPS = [
....
"alastria_auth.apps.AlastriaAuthConfig"
]
# ALASTRIA AUTH VARS
BACKEND_DOMAIN = os.environ.get("BACKEND_DOMAIN", "http://localhost:8000")
NETWORK_SERVICE_HOST = os.environ.get("NETWORK_SERVICE_HOST", "http://host.docker.internal:8001")
ISSUER_PRIVATE_KEY = os.environ.get("ISSUER_PRIVATE_KEY", "")
ISSUER_PUBLIC_KEY = os.environ.get(
    "ISSUER_PUBLIC_KEY",
    "",
)
ISSUER_ADDRESS = os.environ.get("ISSUER_ADDRESS", "")
ALASTRIA_T_NETWORK_ID = os.environ.get("ALASTRIA_T_NETWORK_ID", "redT")
ALASTRIA_AUTH_SECRET = os.environ.get("ALASTRIA_AUTH_SECRET", "")
ALASTRIA_SERVICE_HOST = os.environ.get("ALASTRIA_SERVICE_HOST", "http://host.docker.internal:5000")
#####################

Añadir en url.py las urls:

from alastria_auth.views import AlastriaAuthView

....
urlpatterns = [
	path("alastria/", include("alastria_auth.urls")),
....
]

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

alastria_auth-0.0.17.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

alastria_auth-0.0.17-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file alastria_auth-0.0.17.tar.gz.

File metadata

  • Download URL: alastria_auth-0.0.17.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.11

File hashes

Hashes for alastria_auth-0.0.17.tar.gz
Algorithm Hash digest
SHA256 f881d4628eb3e1a110455f5de8d05924631aefa6a4f96bc7a6a1a25e57d9e51b
MD5 141d3b0487676413ba1e042dbb72da9f
BLAKE2b-256 58e4264eefb54a3e0355924728e39ff29fd671b9129e265df44b1a271ef13b06

See more details on using hashes here.

File details

Details for the file alastria_auth-0.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for alastria_auth-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 a2300f4a8918b73ad336773f6c47dbc23e7175f7adedd0aa4905a50d2e27d746
MD5 d6057243117e2038008d35893ff7915b
BLAKE2b-256 b1ade637639e396d9d8baf380472fe1f2c79312375b8401726a7f88bb9187c7a

See more details on using hashes here.

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