Skip to content

Commit

Permalink
Merge pull request #45426 from rolfedh/update-make-improvements
Browse files Browse the repository at this point in the history
Conditionalize references to OAuth2
  • Loading branch information
sberyozkin authored Jan 14, 2025
2 parents 811996b + 37062d0 commit 529a20d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
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

0 comments on commit 529a20d

Please sign in to comment.