-
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.
Combining authentication mechanisms per endpoint using annotation
- Loading branch information
1 parent
2b26502
commit c1f7ffa
Showing
51 changed files
with
2,538 additions
and
234 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
20 changes: 20 additions & 0 deletions
20
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/Bearer.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.HttpAuthMechanism; | ||
|
||
/** | ||
* Selects {@link io.quarkus.oidc.runtime.BearerAuthenticationMechanism}. | ||
* Equivalent to '@HttpAuthMechanism("Bearer")'. | ||
* | ||
* @see HttpAuthMechanism for more information | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface Bearer { | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/CodeFlow.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.HttpAuthMechanism; | ||
|
||
/** | ||
* Selects {@link CodeAuthenticationMechanism}. | ||
* Equivalent to '@HttpAuthMechanism("code")'. | ||
* | ||
* @see HttpAuthMechanism for more information | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface CodeFlow { | ||
|
||
} |
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.