A small and static Next.js frontend for Hyperion
Project description
CalypSSO
Node project build as a Python module for Hyperion. CalypSSO is composed of:
- A small and static Next.js frontend for Hyperion
Next.js development
You can set Hyperion base url in a dotenv /web/.env
yarn install
yarn dev:web
Pages
The base url of this project is /calypsso.
You will find:
- http://localhost:3000/calypsso/register
- http://localhost:3000/calypsso/activate?activation_token=12345
- http://localhost:3000/calypsso/activate?activation_token=12345&external=true
- http://localhost:3000/calypsso/recover
- http://localhost:3000/calypsso/reset-password?reset_token=12345
- http://localhost:3000/calypsso/login?client_id=Titan&response_type=code&scope=API&redirect_uri=https://localhost:8000/static.html&code_challenge=3sMJwwv1xfZK6yay-HkpseTGMUrmwWx5B9zVAxGfrb0=&code_challenge_method=S256
- http://localhost:3000/calypsso/change-password/?email=prenom.nom%40etu.ec-lyon.fr
- http://localhost:3000/calypsso/asset/?path=mypayment_terms_of_service
Maizzle emails template
Email templates are build using Maizzle.
To preview mails during development use:
yarn install
yarn dev:mail
Email contains escaped template strings:@{{ variable_name }} will be rendered by Maizzle as {{ variable_name }}. Then the Python module will process these expressions using Jinja2
Emails, layout and components are based on maizzle base template repository and design.
You can set the frontmatter preheader of a mail to customize the text preview of the email. See preview-text
Variable starting with an underscore (ex: _logo_url) will be set globally by CalypSSO Python module.
Build Python module
First you need to compile the Next.js project
yarn install
yarn build
The build pages will be located in the /out directory. The small Python package sources are located in /python.
You can install it locally in an other python project using
pip install "path/to/calypsso"
To use it, you need to mount CalypSSO at the subpath /calypsso
For exemple with FastAPI, you could do:
from fastapi import FastAPI
# Define your app
app = FastAPI(
title="MyFastAPIApp",
)
# ...
# Mount CalypSSO app at the subpath /calypsso
calypsso = get_calypsso_app()
app.mount("/calypsso", calypsso)
Make a release on Pypi
You need to edit CalypSSO version in python/calypsso/__about__.py.
Then make a release on GitHub and add a tag. The tag should match v*.*.*.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calypsso-2.6.1.tar.gz.
File metadata
- Download URL: calypsso-2.6.1.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfd681db2b09430af2390fd6d34f47afa8c4490d22e51b217a54cbd0c6dd298
|
|
| MD5 |
c118cb825812410630ea79e22de9fe5a
|
|
| BLAKE2b-256 |
213e9a793379dbb4f900161cb9e103037925578e761b02f052769648ad820fb4
|
Provenance
The following attestation bundles were made for calypsso-2.6.1.tar.gz:
Publisher:
release.yml on aeecleclair/CalypSSO
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
calypsso-2.6.1.tar.gz -
Subject digest:
2dfd681db2b09430af2390fd6d34f47afa8c4490d22e51b217a54cbd0c6dd298 - Sigstore transparency entry: 520712598
- Sigstore integration time:
-
Permalink:
aeecleclair/CalypSSO@3736878f4c50bdca7a5149ae97c80e2b7d1c82cb -
Branch / Tag:
refs/tags/v2.6.1 - Owner: https://github.com/aeecleclair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3736878f4c50bdca7a5149ae97c80e2b7d1c82cb -
Trigger Event:
push
-
Statement type:
File details
Details for the file calypsso-2.6.1-py3-none-any.whl.
File metadata
- Download URL: calypsso-2.6.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb50c70ca74ede526cd852d285273902cca737a2c1f706a7473b681026da3821
|
|
| MD5 |
bb8a9f87cbe57d8f212530cb329533f2
|
|
| BLAKE2b-256 |
e3b5985ced7e6203904b80b967f250693e3dd1b874ffa92c84083e47306dd041
|
Provenance
The following attestation bundles were made for calypsso-2.6.1-py3-none-any.whl:
Publisher:
release.yml on aeecleclair/CalypSSO
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
calypsso-2.6.1-py3-none-any.whl -
Subject digest:
bb50c70ca74ede526cd852d285273902cca737a2c1f706a7473b681026da3821 - Sigstore transparency entry: 520712659
- Sigstore integration time:
-
Permalink:
aeecleclair/CalypSSO@3736878f4c50bdca7a5149ae97c80e2b7d1c82cb -
Branch / Tag:
refs/tags/v2.6.1 - Owner: https://github.com/aeecleclair
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3736878f4c50bdca7a5149ae97c80e2b7d1c82cb -
Trigger Event:
push
-
Statement type: