Skip to content

Commit

Permalink
Update security-authentication-mechanisms.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 1, 2023
1 parent abbf939 commit 077658e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ quarkus.http.auth.form.login-page=
quarkus.http.auth.form.error-page=
----

Now that you have disabled redirects for the SPA you need to login and logout programmatically from your client using JavaScript.
Below are example JavaScript methods for logging into the `j_security_check` and logging out of the application by destroying the cookie.
Now that you have disabled redirects for the SPA, you must login and logout programmatically from your client.
Below are example JavaScript methods for logging into the `j_security_check` endpoint and logging out of the application by destroying the cookie.

[source,javascript]
----
Expand Down Expand Up @@ -127,7 +127,7 @@ const login = () => {
};
----

To logout of the SPA you simply need to destroy the cookie and redirect back to your main page.
To logout of the SPA you must destroy the cookie and redirect back to your main page.

[source,javascript]
----
Expand Down

0 comments on commit 077658e

Please sign in to comment.