Commit graph

15 commits

Author SHA1 Message Date
9dd85a7703
fix: use custom reqwest::Client in middleware
previously the middlewares would use the default `reqwest::Client` even
if the `OidcClient` is created with a custom client.
Now the middleware uses the `reqwest::Client` used during creation of
`OidcClient`.
2024-09-06 20:53:12 +02:00
202b61fa83
fix: correct error handling in rp initiated logout
Previously the extractor would return `ExtractorError::Unauthorized` when the issuer
does not provide a end_session_endpoint.
Now it will return a `ExtractorError::RpInitiatedLogoutNotSupported`.
2024-08-30 10:33:07 +02:00
c9f63180b3
feat: add additional constructors for OidcClient
Adds `discover_new_with_client` and `from_provider_metadata` functions
to `OidcClient` to allow for custom client configurations as requested
in #12.
2024-05-17 16:09:25 +02:00
Johann Vieselthaler
443389f3c4 feat: compatibility to kanidm
kanidm does'nt send session_state
2024-04-28 09:55:59 +02:00
ac3e0caa0b
implement fix for #10
fixed #10 by implementing a flag in the response extensions that
instructs the middleware to clear the session. The flag is automatically
set when using the `OidcRpInitiatedLogout` as a responder.

improved documentation

modified example to reflect api changes
2024-04-20 20:38:16 +02:00
6528a6f247
Cleanup of RP-Initiated Logout
Added comments
Removed unwraps
Reworked Session container and middlewares
2024-03-26 21:15:21 +01:00
1844b880c1
Added first implementation of RP Initiated Logout
Created a new extractor for RP-Initiated-Logout and modified example to
use it.
2024-03-25 17:20:44 +01:00
0b34935b5a
Dependency Update, Added examples/basic, CI
Updated the dependencies to the newest version.
Added `AsRef` and `Deref` traits to the extractors.
Moved the example from `README.md` to `examples/basic`.
Added a CI Pipeline.
2024-03-08 17:17:00 +01:00
MATILLAT Quentin
fac75702e9
feat: Handle Grant error while refreshing token
Signed-off-by: MATILLAT Quentin <qmatillat@gmail.com>
2024-01-20 21:35:19 +01:00
dacaedf9ca update tower-sessions 2024-01-16 12:02:09 +01:00
991f24e31f strip iss query parameter 2023-12-19 10:52:42 +01:00
c9f04fe044
use refresh tokens 2023-11-29 19:07:34 +01:00
9ec50ba251
remove ? on empty query parameters 2023-11-05 16:26:34 +01:00
aa05cf6bde
first implementation 2023-11-03 19:43:01 +01:00
1b3973064b
init 2023-11-02 23:16:46 +01:00