A OpenID Connect Client Libary for axum
Find a file
Paul Zinselmeyer 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
.github/workflows Dependency Update, Added examples/basic, CI 2024-03-08 17:17:00 +01:00
examples/basic Added first implementation of RP Initiated Logout 2024-03-25 17:20:44 +01:00
src Added first implementation of RP Initiated Logout 2024-03-25 17:20:44 +01:00
.gitignore Added first implementation of RP Initiated Logout 2024-03-25 17:20:44 +01:00
Cargo.toml Added first implementation of RP Initiated Logout 2024-03-25 17:20:44 +01:00
README.md Dependency Update, Added examples/basic, CI 2024-03-08 17:17:00 +01:00

This Library allows using OpenID Connect with axum. It authenticates the user with the OpenID Conenct Issuer and provides Extractors.

Usage

The OidcAuthLayer must be loaded on any handler that might use the extractors. The user won't be automatically logged in using this layer. If a valid session is found, the extractors will return the correct value and fail otherwise.

The OidcLoginLayer should be loaded on any handler on which the user is supposed to be authenticated. The User will be redirected to the OpenId Conect Issuer to authenticate. The extractors will always return a value.

The OidcClaims-extractor can be used to get the OpenId Conenct Claims. The OidcAccessToken-extractor can be used to get the OpenId Connect Access Token.

Your OIDC-Client must be allowed to redirect to every subpath of your application base url.

Examples

Take a look at the examples folder for examples.

Contributing

I'm happy about any contribution in any form. Feel free to submit feature requests and bug reports using a GitHub Issue. PR's are also appreciated.

License

This Library is licensed under LGPLv3.