removed section about check sso (#1557)

see: https://github.com/keycloak/keycloak-nodejs-connect/pull/386
This commit is contained in:
Erik Jan de Wit 2022-10-25 06:48:12 +02:00 committed by GitHub
parent a1b9a6023c
commit 6ee39c4e6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,16 +198,6 @@ Example configuration:
app.use( keycloak.middleware() ); 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 ==== Protecting resources
Simple authentication:: Simple authentication::