Skip to content

Commit c37e785

Browse files
authored
Merge pull request #3 from spider-gazelle/PPT-2347
feat: [PPT-2347] Add OAuth2/OIDC server via Authly integration
2 parents 05c00e6 + 5042e03 commit c37e785

35 files changed

+7351
-1201
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ COOKIE_SESSION_SECRET=4f74c0b358d5bab4000dd3c75465dc2c
1717
# Application URL (used for email links)
1818
APP_BASE_URL=http://localhost:3000
1919

20+
# JWT Configuration (Required for OAuth2/OIDC)
21+
# For RS256: Use RSA private key (PEM format, base64 encoded)
22+
# For HS256: Use a random secret string
23+
JWT_SECRET=
24+
JWT_ISSUER=
25+
2026
# OAuth Providers (Optional)
2127
# Get credentials from: https://console.developers.google.com
2228
GOOGLE_CLIENT_ID=

.github/workflows/ci.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,12 @@ jobs:
1010
specs:
1111
runs-on: ubuntu-latest
1212

13-
container:
14-
image: 84codes/crystal:latest-alpine
15-
options: --init
16-
17-
services:
18-
postgres:
19-
image: postgres:18-alpine
20-
env:
21-
POSTGRES_USER: postgres
22-
POSTGRES_PASSWORD: password
23-
POSTGRES_DB: development
24-
ports:
25-
- 5432:5432
26-
options: >-
27-
--health-cmd="pg_isready -U postgres"
28-
--health-interval=10s
29-
--health-timeout=5s
30-
--health-retries=5
31-
32-
env:
33-
PG_DATABASE_URL: postgresql://postgres:password@postgres:5432/development
34-
GITHUB_ACTION: true
35-
3613
steps:
37-
- name: Install build dependencies
38-
run: |
39-
apk add --no-cache git make bash
40-
4114
- name: Checkout source code
4215
uses: actions/checkout@v3
43-
44-
- name: Install shards
45-
run: shards install --ignore-crystal-version --skip-postinstall --skip-executables
46-
16+
- name: Install Crystal
17+
uses: crystal-lang/install-crystal@v1
18+
- name: Install dependencies
19+
run: shards install
4720
- name: Run specs
48-
run: |
49-
crystal spec -v --error-trace
21+
run: ./test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ app
77
bin
88
.DS_Store
99
.env
10-
.vscode**
10+
.vscode**
11+
docs/

0 commit comments

Comments
 (0)