Commit graph

64 commits

Author SHA1 Message Date
275d93d2c4
Merge PR #41 2025-11-26 15:53:50 +01:00
JuliDi
4c508a22e6
fix regression from #39 that broke #34 again 2025-11-26 15:51:30 +01:00
a766608f55
Merge PR #40 2025-11-25 14:13:33 +01:00
JuliDi
a5e0bc705e
update example to use exported types for Scope and IssuerUrl 2025-11-25 13:55:27 +01:00
JuliDi
3acdd41a9a
Use AuthenticationContextClass, IssuerUrl and Scope instead of strings 2025-11-25 13:44:39 +01:00
JuliDi
542fe66313
re-export openidconnect 2025-11-25 13:28:08 +01:00
7d6e7e9e6d
Merge PR #39
Add OidcUserInfo, tracing and untrusted audiences
2025-11-24 13:05:56 +01:00
JuliDi
094e9e5ff6
add UserInfoClaims, add untrusted_audiences, add tracing 2025-11-24 13:01:15 +01:00
6280ad62cc
fix: repair examples/basic 2025-11-21 13:51:37 +01:00
00136320a9
removed integration test from examples/basic
Integrations tests will be re-implemented on the main-crate.
See #20 and #35.
2025-11-21 13:47:37 +01:00
c3f4b7e514
Merge PR #36 2025-11-21 13:34:59 +01:00
JuliDi
992cdb8ef9
use openidconnect ClientId and ClientSecret directly instead of Box<str> 2025-11-21 13:20:18 +01:00
46f4ef056f
Merge PR #37 2025-11-21 13:11:47 +01:00
JuliDi
c5e83655bc
set refresh_token to None when ClearSessionFlag is set 2025-11-21 11:56:06 +01:00
af03d32d1c
License change from LGPLv3 to MPLv2 (#30)
LGPLv3 is the wrong choice for rust programs due to rusts transitive
recompilation requirements.
MPLv2 captures the same 'spirit' but allow transitive recompilation
2025-11-20 14:55:53 +01:00
861cb70cee
fix: #32 use OriginalUri for redirect_url 2025-11-06 18:56:33 +01:00
bacab1c939
fix: #34 optional nonce in ID token refresh
Only verify nonce in token request response if one was given.
2025-11-06 18:44:10 +01:00
65cb175603
test: fix chromium-headless and issuer_url
fix for #25
2025-04-18 16:33:24 +02:00
fa5faed004
fix: issuer URL at / path
Previously the issuer url was received as an http::Uri.
When it was converted into a String, a `/` was appended which caused the
IssuerURL validation check in openidconnect to fail.
Now the IssuerURL is received as a String.
2025-04-18 16:23:24 +02:00
19adcbabd2
fix: fixed redirect_uri with handler_uri in session
Previously the redirect_uri was the uri of the handler that needed
authentication.
Now one fixed redirect_uri for the entire application is used that will
redirect the user to the correct handler after successful
authentication.
This commit should fix: #28, #27, #26, #21
2025-04-18 16:23:21 +02:00
58369449cf
feat: add typestate OidcClient builder
The previous generator functions for `OidcClient` have been replaced by
a Builder.
With this change the suggested changes by #14 and #21 have been
implemented.
2025-02-18 21:32:19 +01:00
6d7fc3c7f1
Merge PR #23 2025-02-18 21:31:38 +01:00
MATILLAT Quentin
10349c61b5
chore!: Remove ref from http_client in constructors
Signed-off-by: MATILLAT Quentin <qmatillat@gmail.com>
2025-01-29 15:16:32 +01:00
MATILLAT Quentin
2800b88b82
chore(deps): Update to openidconnect 0.4
Signed-off-by: MATILLAT Quentin <qmatillat@gmail.com>
2025-01-29 15:16:24 +01:00
f0d9126652
Version 0.6.0 2025-01-12 22:46:19 +01:00
74551fb479
update dependencies 2025-01-12 22:39:51 +01:00
e86842c104
Merge PR #22 2025-01-12 22:22:35 +01:00
MATILLAT Quentin
3b4bbb6978
chore: Update axum to 0.8
Signed-off-by: MATILLAT Quentin <qmatillat@gmail.com>
2025-01-11 17:38:34 +01:00
57e571bd93
Version 0.5.0 2024-09-23 21:44:37 +02:00
89c3a9ccb4
Dependency Update
Updated dependencies:
- tower-sessions to 0.13
2024-09-23 21:44:37 +02:00
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
32ecc2041b
merge pr #16: "Fix two typos in README.MD" 2024-08-30 10:19:28 +02:00
Armin
bda8797960
Fix two typos in README.md 2024-08-30 09:45:59 +02:00
e62aba722c
feat: automated integration test for example/basic
Adds automated CI integration tests to the basic example.
The integration tests launch and configure a keycloak server, launch the
example and test its functionality with a headless browser.
2024-05-17 16:41:49 +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
43406661f6
v0.4.0 & dependency update 2024-04-28 10:52:41 +02:00
88aed8e903
Merge PR #11: compatibility to kanidm 2024-04-28 10:34:54 +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
a7b76ace76
Add version structure to README.md
Added the new branch and tag strategy in the README.md
2024-04-18 16:13:57 +02:00
98b4dea841
Merge branch 'rp-initiated-logout'
Implements a extractor to get the
[RP-Initiated Logout](https://openid.net/specs/openid-connect-rpinitiated-1_0.html) URL.
2024-03-26 21:18:02 +01: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
a522b7936d
replace outdated test credentials with placeholder 2024-03-12 16:18:18 +01:00
84bd595ea1
repair example/basic tokio features 2024-03-10 20:22:56 +01:00
ca411cc2e3
increment minor version 2024-03-10 20:17:31 +01:00
2741a3ee28
Merge branch 'ci'
Added CI and moved examples to `examples` folder.
2024-03-08 17:23:11 +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
abe316884e
increment minor version 2024-01-23 14:21:47 +01:00