Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionalize references to OAuth2 #45426

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,12 @@ For more information, see the Quarkus xref:security-oauth2.adoc[Using OAuth2] gu
endif::no-quarkus-elytron-security-oauth2[]

[[oidc-jwt-oauth2-comparison]]
ifndef::no-quarkus-elytron-security-oauth2[]
== Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms
endif::no-quarkus-elytron-security-oauth2[]
ifdef::no-quarkus-elytron-security-oauth2[]
== Choosing between OpenID Connect and SmallRye JWT authentication mechanisms
rolfedh marked this conversation as resolved.
Show resolved Hide resolved
endif::no-quarkus-elytron-security-oauth2[]

Use the following information to select the appropriate token authentication mechanism to secure your Quarkus applications.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/security-identity-providers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In the Quarkus Security framework, identity providers play a crucial role in aut
[[identity-providers]]
`IdentityProvider` converts the authentication credentials provided by `HttpAuthenticationMechanism` to a `SecurityIdentity` instance.

Some extensions, for example, `OIDC`, `OAuth2`, and `SmallRye JWT`, have inline `IdentityProvider` implementations specific to the supported authentication flow.
Some extensions, such as the ones for OIDC and SmallRye JWT, include inline `IdentityProvider` implementations specific to the supported authentication flow.
For example, `quarkus-oidc` uses its own `IdentityProvider` to convert a token to a `SecurityIdentity` instance.

If you use Basic or form-based authentication, you must add an `IdentityProvider` instance to convert a username and password to a `SecurityIdentity` instance.
Expand Down
Loading