Skip to content

Commit

Permalink
Merge pull request #42995 from rolfedh/fix-minor-typo-tip
Browse files Browse the repository at this point in the history
Fix minor typo: Use correct syntax for TIP admonition
  • Loading branch information
sberyozkin committed Sep 3, 2024
2 parents e625258 + fba21a8 commit db228d1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,13 @@ public class HelloResource {
----
<1> The `io.quarkus.oidc.Tenant` annotation must be placed on either the resource class or resource method.

[[TIP]]
[TIP]
====
In the example above, authentication of the `sayHello` endpoint is enforced with the `@Authenticated` annotation.
Alternatively, if you use an the xref:security-authorize-web-endpoints-reference.adoc#authorization-using-configuration[HTTP Security policy]
to secure the endpoint, then, for the `@Tenant` annotation be effective, you must delay this policy's permission check as shown in the example below:
to secure the endpoint, then, for the `@Tenant` annotation be effective, you must delay this policy's permission check as shown in the following example:
[source,properties]
----
quarkus.http.auth.permission.authenticated.paths=/api/hello
Expand All @@ -669,6 +672,7 @@ quarkus.http.auth.permission.authenticated.policy=authenticated
quarkus.http.auth.permission.authenticated.applies-to=JAXRS <1>
----
<1> Tell Quarkus to run the HTTP permission check after the tenant has been selected with the `@Tenant` annotation.
====

[[tenant-config-resolver]]
=== Dynamic tenant configuration resolution
Expand Down

0 comments on commit db228d1

Please sign in to comment.