Skip to content

Commit

Permalink
Update docs/src/main/asciidoc/security-oidc-code-flow-authentication.…
Browse files Browse the repository at this point in the history
…adoc

Co-authored-by: George Gastaldi <[email protected]>
  • Loading branch information
sberyozkin and gastaldi authored Jul 18, 2023
1 parent 11230f5 commit c303b99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ In such cases, set the `quarkus.oidc.authentication.java-script-auto-redirect` p

The browser script must set a header to identify the current request as a JavaScript request for `499` status code to be returned when `quarkus.oidc.authentication.java-script-auto-redirect` property is set to `false`.

If the script engine sets an engine specific request header itself, then you can register a custom `quarkus.oidc.JavaScriptRequestChecker` bean which will inform Quarkus if the current request is a JavaScript request. For example, if the JavaScript engine sets a header such as `HX-Request: true` then you can have it checked like this:
If the script engine sets an engine-specific request header itself, then you can register a custom `quarkus.oidc.JavaScriptRequestChecker` bean, which will inform Quarkus if the current request is a JavaScript request. For example, if the JavaScript engine sets a header such as `HX-Request: true` then you can have it checked like this:

[source,java]
----
Expand Down

0 comments on commit c303b99

Please sign in to comment.