Skip to main content

Authentication system for Macrostrat and related apps

Project description

Macrostrat authentication system

This module contains tools to manipulate Macrostrat's user authentication system. It is divided into two submodules:

  • macrostrat.auth_system.legacy: A JWT-based authentication system relying on local storage of hashed passwords. This system was created as part of Sparrow and is being phased out in favor of a more modern system based on ORCID.
  • macrostrat.auth_system.core: An ORCID-based user authentication system. This system will become the primary authentication system for Macrostrat, but it is still in development.

We plan to gradually converge the functionality of both versions while phasing out the legacy system.

The system has tests that can be run with poetry run pytest auth-system (currently, only the legacy system is covered).

Key planned functionality

  • Allow many Macrostrat-hosted services to easily integrate with Macrostrat's login and token flow
  • Allow APIs to easily validate user credentials and tokens with minimum overhead
  • Allow access to be checked in multiple ways:
    • Cookies and headers
    • Limited-time JWT tokens and long-duration, cancelable API tokens
    • Verify against Macrostrat "user group" or application-specific criteria ( e.g., a list of authorized ORCID IDs)

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

macrostrat_auth_system-1.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

macrostrat_auth_system-1.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file macrostrat_auth_system-1.1.0.tar.gz.

File metadata

  • Download URL: macrostrat_auth_system-1.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for macrostrat_auth_system-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8285fd2817265a8fa35459f6f2b405f151604c2e96e77e25246ece906ccb6390
MD5 d82a0bae065c84e27b5bc8db7cae0aa0
BLAKE2b-256 973a5b14cb938fcf74b8e02912b711cef2752fd4b6b8877bae3f7dab6a2d5284

See more details on using hashes here.

File details

Details for the file macrostrat_auth_system-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: macrostrat_auth_system-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for macrostrat_auth_system-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ca65d1ca380a8b52e8cf59c7c14d83da6aa9b18e82b47932c69c331bd35dc82
MD5 2f469152eabc2deaf738eb686af02021
BLAKE2b-256 e59e5296d5591fd53ca5e82b46dd5f472880b85e5a18bf286fbe9e520967097b

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