-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support annotation-based auth mechanism selection
- Loading branch information
1 parent
b870f32
commit 1f127d2
Showing
52 changed files
with
2,544 additions
and
299 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
21 changes: 21 additions & 0 deletions
21
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/AuthorizationCodeFlow.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,21 @@ | ||
package io.quarkus.oidc; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import io.quarkus.oidc.runtime.CodeAuthenticationMechanism; | ||
import io.quarkus.vertx.http.runtime.security.annotation.HttpAuthenticationMechanism; | ||
|
||
/** | ||
* Selects {@link CodeAuthenticationMechanism}. | ||
* | ||
* @see HttpAuthenticationMechanism for more information | ||
*/ | ||
@HttpAuthenticationMechanism("code") | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface AuthorizationCodeFlow { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/BearerTokenAuthentication.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,20 @@ | ||
package io.quarkus.oidc; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import io.quarkus.vertx.http.runtime.security.annotation.HttpAuthenticationMechanism; | ||
|
||
/** | ||
* Selects {@link io.quarkus.oidc.runtime.BearerAuthenticationMechanism}. | ||
* | ||
* @see HttpAuthenticationMechanism for more information | ||
*/ | ||
@HttpAuthenticationMechanism("Bearer") | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface BearerTokenAuthentication { | ||
|
||
} |
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.