-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add principal token to the application context (#123)
* feat: add token parser service, add principal token to application context * feat: add context principal token
- Loading branch information
1 parent
ae0e1e6
commit 09bfbfb
Showing
22 changed files
with
626 additions
and
150 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
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
13 changes: 13 additions & 0 deletions
13
...ns/rest-context/src/main/java/org/tkit/quarkus/rs/context/PrincipalRequiredException.java
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,13 @@ | ||
package org.tkit.quarkus.rs.context; | ||
|
||
public class PrincipalRequiredException extends RestContextException { | ||
|
||
public PrincipalRequiredException() { | ||
super(ErrorKeys.PRINCIPAL_REQUIRED, "Principal is required"); | ||
} | ||
|
||
public enum ErrorKeys { | ||
|
||
PRINCIPAL_REQUIRED; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...st-context/src/main/java/org/tkit/quarkus/rs/context/PrincipalTokenRequiredException.java
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,13 @@ | ||
package org.tkit.quarkus.rs.context; | ||
|
||
public class PrincipalTokenRequiredException extends RestContextException { | ||
|
||
public PrincipalTokenRequiredException() { | ||
super(ErrorKeys.PRINCIPAL_TOKEN_REQUIRED, "Principal token is required"); | ||
} | ||
|
||
public enum ErrorKeys { | ||
|
||
PRINCIPAL_TOKEN_REQUIRED; | ||
} | ||
} |
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.