Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SAPPER_KEYCLOAK_CLIENT_ID=
SAPPER_KEYCLOAK_CLIENT_SECRET=
SAPPER_KEYCLOAK_REALM=
SAPPER_KEYCLOAK_AUTHSERVER_URL=https://keycloak.yoursite.com/auth
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
yarn-error.log
/cypress/screenshots/
/__sapper__/
.env
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Sapper Authentication Demo

A demonstration of Authentication with Sapper
A demonstration of Authentication with Sapper with Keycloak and passport.js

Includes:

* JWT
* Secure cookies
* HTTP Only cookies
* Keycloak Integration with Passport

## Usage

`npm run dev`
1. Set up Keycloak and Keycloak Client (DevOps Bliss Course shows you how)
2. Create `.env` file with values from Keycloak
3. Install `dotenv-cli` - `npm i -g dotenv-cli`
4. Run - `dotenv -e .env npm run dev`
46 changes: 0 additions & 46 deletions backend/auth.js

This file was deleted.

Loading