unilim-cas (1.0.1)
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add unilim-cas@1.0.1 --registry forgejoAbout this package
A purrfect CAS authentication wrapper for Unilim.
cas.unilim.fr
Client for the Central Authentication Service of Unilim, the University of Limoges.
It talks to the LemonLDAP::NG portal at cas.unilim.fr and handles login,
2FA, session persistence, service tickets and OAuth2.
Usage
First login, with 2FA
| Rust | JS/TS |
|---|---|
|
|
finish() registers our "browser" on the portal.
Restoring a session, bypassing 2FA
To be able to do this you should've stored the following values.
cas.connection(llngconnectionpersistence cookie)cas.key(TOTP secret linked to that cookie)
| Rust | JS/TS |
|---|---|
|
|
A raw lemonldap session cookie can also be wrapped with
CAS::temporary(cookie). Such a session cannot be restored.
Forge service tickets
The returned URL is the login route of the service with a ticket=ST-...
query parameter. Requesting it logs you into the service.
| Rust | JS/TS |
|---|---|
|
|
Authorize OAuth2
| Rust | JS/TS |
|---|---|
|
|
License
GPL-3.0-or-later, see LICENSE.md. Not affiliated with the University of Limoges.
Dependencies
| ID | Version |
|---|---|
| rikka | ^0.1 |
| scraper | ^0.21 |
| serde | ^1 |
| thiserror | ^2 |
| totp-rs | ^5 |
| url | ^2 |
| web-time | ^1 |
| anyhow | ^1 |
| dotenvy | ^0.15 |
| inquire | ^0.7 |
| tokio | ^1 |
| getrandom | ^0.3 |
| js-sys | ^0.3 |
| lol_alloc | ^0.4 |
| tsify-next | ^0.5 |
| wasm-bindgen | ^0.2 |
| wasm-bindgen-futures | ^0.4 |
Keywords
unilim
cas
authentication
api
wrapper
Details
2026-08-15 13:39:40 +00:00
Assets (1)
Versions (2)
View all
Cargo
6
Mikkel ALMONTE--RINGAUD <contact@vexcited.com>
GPL-3.0-or-later
45 KiB
unilim-cas-1.0.1.crate
45 KiB