This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from ralvescosta/develop
Develop
- Loading branch information
Showing
35 changed files
with
217 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug, PartialEq, Eq)] | ||
pub enum AuthError { | ||
#[error("internal error")] | ||
InternalError, | ||
|
||
#[error("could not retrieve JWKS")] | ||
CouldNotRetrieveJWKS, | ||
|
||
#[error("error to load secrets from secret manager - `{0}`")] | ||
InvalidToken(String), | ||
|
||
#[error("failed to deserialize token")] | ||
FailedToDeserializeToken, | ||
|
||
#[error("failed to retrieve claim")] | ||
FailedToRetrieveClaim, | ||
|
||
#[error("failed to retrieve user custom data claim")] | ||
FailedToRetrieveUserCustomDataClaim, | ||
|
||
#[error("failed to retrieve scope claim")] | ||
FailedToRetrieveScopeClaim, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod auth0; | ||
pub mod errors; | ||
pub mod keycloak; | ||
pub mod manager; | ||
pub mod rbac; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.