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
Built Distribution
File details
Details for the file macrostrat_auth_system-1.0.2.tar.gz
.
File metadata
- Download URL: macrostrat_auth_system-1.0.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.5 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859a8fe5fe9f08a728542eee6a6a0216d1dd75a9e4b0b0831314de771f0c4dea |
|
MD5 | 96bacd18dc3812f2a9bc9260252e9ddb |
|
BLAKE2b-256 | 2236505c9f45a3dbfa30c8589f39a6c86a0ca289f9f3480e64689f52eb0d5dfc |
File details
Details for the file macrostrat_auth_system-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: macrostrat_auth_system-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.5 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fa4bce342bcaee0eff4a08d71a88220ce3f5eb9aab45e426afe62993a986cc |
|
MD5 | a8a3e0026d523c3635a62831a51c3bf8 |
|
BLAKE2b-256 | 253d34a9712cf070ce8e911b721968b652061ab8722c9088b8deee3c080718a7 |