Skip to main content

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)

Metadata

Release files for macrostrat.auth_system 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 macrostrat.auth_system 1.1.1
File Size Uploaded
macrostrat_auth_system-1.1.1.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for macrostrat.auth_system 1.1.1
File Interpreter ABI Platform
macrostrat_auth_system-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / macrostrat_auth_system-1.1.1.tar.gz

Download URL macrostrat_auth_system-1.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef54b33e59f8f193be9e2a60cf4f8dbe5138949b51e9244d50c9acd65db016a6
BLAKE2b-256 checksum
How to use checksums
c9d54a9c945ef7c0d8703e6741c124d8a290081b07090b7eea222fc184a41769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / macrostrat_auth_system-1.1.1-py3-none-any.whl

Download URL macrostrat_auth_system-1.1.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab790df20a9681e063f6fbd44faf69ec9ed8dfafcf5288b0c29055af4414b51c
BLAKE2b-256 checksum
How to use checksums
a7396c9ff99c31164e5ba1ed632d879d81b6c0ebcfd963dae89e0fbfb5783f95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

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