Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
removed section about check sso (#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit authored Oct 25, 2022
1 parent a1b9a60 commit 6ee39c4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions securing_apps/topics/oidc/nodejs-adapter.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,6 @@ Example configuration:
app.use( keycloak.middleware() );
----

==== Checking authentication

To check that a user is authenticated before accessing a resource,
simply use `keycloak.checkSso()`. It will only authenticate if the user is already logged-in. If the user is not logged-in, the browser will be redirected back to the originally-requested URL and remain unauthenticated:

[source,javascript]
----
app.get( '/check-sso', keycloak.checkSso(), checkSsoHandler );
----

==== Protecting resources

Simple authentication::
Expand Down

0 comments on commit 6ee39c4

Please sign in to comment.