Skip to content

Commit

Permalink
removed section about check sso
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit committed Jun 3, 2022
1 parent 0692102 commit 395bcdb
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 395bcdb

Please sign in to comment.