Skip to content

Commit

Permalink
fix: Generate optional client side secret (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
9876691 authored Jan 18, 2023
1 parent a2538e3 commit 365963c
Show file tree
Hide file tree
Showing 9 changed files with 236 additions and 93 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
if: github.ref == 'refs/heads/master'
run: docker pull purtontech/barricade:build

- name: Setup Node.js for Semantic Release
uses: actions/setup-node@v3
with:
node-version: "lts/*"

- name: Semantic Release
run: |
npm i -D @semantic-release-plus/docker
Expand Down
117 changes: 80 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ edition = "2021"
[dependencies]
actix-web = { version = "4", default-features = false, features = ["macros", "cookies", "secure-cookies"] }
actix-files = "0"
dotenv = "0.15"
actix-identity = "0"
tokio = { version = "1", features = ["macros"] }
tokio = { version = "1.24", features = ["macros"] }

# Used for generating OTP codes and sessions.
rand = "0"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
| SECRET_KEY | Mandatory | 256 bits of entropy in hex. Used to encrypt the cookie. You can use `openssl rand -hex 32` |
| DATABASE_URL | Mandatory | URL of the Postgres database |
| REDIRECT_URL | Mandatory | After login or registration redirect the user to this URL |
| LOGOUT_URL | Optional | The page to redirect to when the user signs out. Default is '/' |
| SECURE_COOKIE | Optional | If present set the authentication cookie to secure. |
| PORT | Optional | The port to listen on, defaults to 9090 |
| USER_TABLE_NAME | Optional | Set this to the table name of your users table. Defaults to `users` |
Expand Down
Loading

0 comments on commit 365963c

Please sign in to comment.