From 6ee39c4e6d4065d5723e55df41c9aaebada375c3 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 25 Oct 2022 06:48:12 +0200 Subject: [PATCH] removed section about check sso (#1557) see: https://github.com/keycloak/keycloak-nodejs-connect/pull/386 --- securing_apps/topics/oidc/nodejs-adapter.adoc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/securing_apps/topics/oidc/nodejs-adapter.adoc b/securing_apps/topics/oidc/nodejs-adapter.adoc index bf443a6c6e..bf1e1742c2 100644 --- a/securing_apps/topics/oidc/nodejs-adapter.adoc +++ b/securing_apps/topics/oidc/nodejs-adapter.adoc @@ -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::