Skip to content

Commit 2c38bd3

Browse files
committed
Check mfa on loginname
1 parent 74858dc commit 2c38bd3

274 files changed

Lines changed: 35915 additions & 35882 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ZITADEL_API_URL=http://localhost:22222
2-
ZITADEL_SERVICE_USER_TOKEN="yolo"
3-
EMAIL_VERIFICATION=true
4-
DEBUG=true
5-
PORT=3001
6-
NEXT_PUBLIC_BASE_PATH=/ui/v2/login
1+
ZITADEL_API_URL=http://localhost:22222
2+
ZITADEL_SERVICE_USER_TOKEN="yolo"
3+
EMAIL_VERIFICATION=true
4+
DEBUG=true
5+
PORT=3001
6+
NEXT_PUBLIC_BASE_PATH=/ui/v2/login

.eslintrc.cjs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
module.exports = {
2-
parser: "@typescript-eslint/parser",
3-
extends: ["next", "prettier"],
4-
plugins: ["@typescript-eslint"],
5-
rules: {
6-
"@next/next/no-html-link-for-pages": "off",
7-
"@next/next/no-img-element": "off",
8-
"react/no-unescaped-entities": "off",
9-
"no-unused-vars": "off",
10-
"@typescript-eslint/no-unused-vars": ["error", {
11-
argsIgnorePattern: "^_" ,
12-
varsIgnorePattern: "^_" ,
13-
}],
14-
"no-undef": "off",
15-
},
16-
parserOptions: {
17-
ecmaVersion: "latest",
18-
sourceType: "module",
19-
ecmaFeatures: {
20-
jsx: true,
21-
},
22-
project: "./tsconfig.json",
23-
},
24-
};
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
extends: ["next", "prettier"],
4+
plugins: ["@typescript-eslint"],
5+
rules: {
6+
"@next/next/no-html-link-for-pages": "off",
7+
"@next/next/no-img-element": "off",
8+
"react/no-unescaped-entities": "off",
9+
"no-unused-vars": "off",
10+
"@typescript-eslint/no-unused-vars": ["error", {
11+
argsIgnorePattern: "^_" ,
12+
varsIgnorePattern: "^_" ,
13+
}],
14+
"no-undef": "off",
15+
},
16+
parserOptions: {
17+
ecmaVersion: "latest",
18+
sourceType: "module",
19+
ecmaFeatures: {
20+
jsx: true,
21+
},
22+
project: "./tsconfig.json",
23+
},
24+
};

.github/dependabot.example.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
version: 2
2-
updates:
3-
- package-ecosystem: github-actions
4-
directory: '/'
5-
open-pull-requests-limit: 1
6-
schedule:
7-
interval: 'daily'
8-
9-
- package-ecosystem: npm
10-
directory: '/'
11-
open-pull-requests-limit: 3
12-
schedule:
13-
interval: daily
14-
groups:
15-
prod:
16-
dependency-type: production
17-
dev:
18-
dependency-type: development
19-
ignore:
20-
- dependency-name: "eslint"
21-
versions: [ "9.x" ]
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: '/'
5+
open-pull-requests-limit: 1
6+
schedule:
7+
interval: 'daily'
8+
9+
- package-ecosystem: npm
10+
directory: '/'
11+
open-pull-requests-limit: 3
12+
schedule:
13+
interval: daily
14+
groups:
15+
prod:
16+
dependency-type: production
17+
dev:
18+
dependency-type: development
19+
ignore:
20+
- dependency-name: "eslint"
21+
versions: [ "9.x" ]

.github/workflows/publish.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
name: Publish Auth UI
2-
3-
on:
4-
push:
5-
paths-ignore:
6-
- 'docs/**'
7-
- 'README.md'
8-
9-
release:
10-
types: ['published']
11-
12-
jobs:
13-
check-files:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v5
18-
19-
publish-container-image:
20-
permissions:
21-
id-token: write
22-
contents: read
23-
packages: write
24-
attestations: write
25-
uses: datum-cloud/actions/.github/workflows/publish-docker.yaml@v1.6.5
26-
with:
27-
image-name: auth-ui
28-
secrets: inherit
29-
30-
publish-kustomize-bundles:
31-
permissions:
32-
id-token: write
33-
contents: read
34-
packages: write
35-
uses: datum-cloud/actions/.github/workflows/publish-kustomize-bundle.yaml@v1.6.5
36-
with:
37-
bundle-name: ghcr.io/datum-cloud/auth-ui-kustomize
38-
bundle-path: config
1+
name: Publish Auth UI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- 'README.md'
8+
9+
release:
10+
types: ['published']
11+
12+
jobs:
13+
check-files:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
19+
publish-container-image:
20+
permissions:
21+
id-token: write
22+
contents: read
23+
packages: write
24+
attestations: write
25+
uses: datum-cloud/actions/.github/workflows/publish-docker.yaml@v1.6.5
26+
with:
27+
image-name: auth-ui
28+
secrets: inherit
29+
30+
publish-kustomize-bundles:
31+
permissions:
32+
id-token: write
33+
contents: read
34+
packages: write
35+
uses: datum-cloud/actions/.github/workflows/publish-kustomize-bundle.yaml@v1.6.5
36+
with:
37+
bundle-name: ghcr.io/datum-cloud/auth-ui-kustomize
38+
bundle-path: config
3939
secrets: inherit

.github/workflows/test.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
name: Quality
2-
on:
3-
pull_request:
4-
workflow_dispatch:
5-
inputs:
6-
ignore-run-cache:
7-
description: 'Whether to ignore the run cache'
8-
required: false
9-
default: true
10-
ref-tag:
11-
description: 'overwrite the DOCKER_METADATA_OUTPUT_VERSION environment variable used by the make file'
12-
required: false
13-
default: ''
14-
jobs:
15-
quality:
16-
name: Ensure Quality
17-
if: github.event_name == 'workflow_dispatch' ||
18-
(github.event_name == 'pull_request' && github.repository_id != '622995060')
19-
runs-on: ubuntu-22.04
20-
timeout-minutes: 30
21-
permissions:
22-
contents: read # We only need read access to the repository contents
23-
actions: write # We need write access to the actions cache
24-
env:
25-
CACHE_DIR: /tmp/login-run-caches
26-
# Only run this job on workflow_dispatch or pushes to forks
27-
steps:
28-
- uses: actions/checkout@v4
29-
- name: Docker meta
30-
id: meta
31-
uses: docker/metadata-action@v5
32-
with:
33-
images: |
34-
ghcr.io/zitadel/login
35-
tags: |
36-
type=raw,value=latest,enable={{is_default_branch}}
37-
type=ref,event=branch
38-
type=ref,event=pr
39-
type=semver,pattern={{version}}
40-
type=semver,pattern={{major}}.{{minor}}
41-
type=semver,pattern={{major}}
42-
- name: Set up Buildx
43-
uses: docker/setup-buildx-action@v3
44-
# Only with correctly restored build cache layers, the run caches work as expected.
45-
# To restore docker build layer caches, extend the docker-bake.hcl to use the cache-from and cache-to options.
46-
# https://docs.docker.com/build/ci/github-actions/cache/
47-
# Alternatively, you can use a self-hosted runner or a third-party builder that restores build layer caches out-of-the-box, like https://depot.dev/
48-
- name: Restore Run Caches
49-
uses: actions/cache/restore@v4
50-
id: run-caches-restore
51-
with:
52-
path: ${{ env.CACHE_DIR }}
53-
key: ${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-${{github.run_attempt}}
54-
restore-keys: |
55-
${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-
56-
${{ runner.os }}-login-run-caches-${{github.ref_name}}-
57-
${{ runner.os }}-login-run-caches-
58-
- run: make login_quality
59-
env:
60-
IGNORE_RUN_CACHE: ${{ github.event.inputs.ignore-run-cache == 'true' }}
61-
DOCKER_METADATA_OUTPUT_VERSION: ${{ github.event.inputs.ref-tag || env.DOCKER_METADATA_OUTPUT_VERSION || steps.meta.outputs.version }}
62-
- name: Save Run Caches
63-
uses: actions/cache/save@v4
64-
with:
65-
path: ${{ env.CACHE_DIR }}
66-
key: ${{ steps.run-caches-restore.outputs.cache-primary-key }}
67-
if: always()
1+
name: Quality
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
inputs:
6+
ignore-run-cache:
7+
description: 'Whether to ignore the run cache'
8+
required: false
9+
default: true
10+
ref-tag:
11+
description: 'overwrite the DOCKER_METADATA_OUTPUT_VERSION environment variable used by the make file'
12+
required: false
13+
default: ''
14+
jobs:
15+
quality:
16+
name: Ensure Quality
17+
if: github.event_name == 'workflow_dispatch' ||
18+
(github.event_name == 'pull_request' && github.repository_id != '622995060')
19+
runs-on: ubuntu-22.04
20+
timeout-minutes: 30
21+
permissions:
22+
contents: read # We only need read access to the repository contents
23+
actions: write # We need write access to the actions cache
24+
env:
25+
CACHE_DIR: /tmp/login-run-caches
26+
# Only run this job on workflow_dispatch or pushes to forks
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Docker meta
30+
id: meta
31+
uses: docker/metadata-action@v5
32+
with:
33+
images: |
34+
ghcr.io/zitadel/login
35+
tags: |
36+
type=raw,value=latest,enable={{is_default_branch}}
37+
type=ref,event=branch
38+
type=ref,event=pr
39+
type=semver,pattern={{version}}
40+
type=semver,pattern={{major}}.{{minor}}
41+
type=semver,pattern={{major}}
42+
- name: Set up Buildx
43+
uses: docker/setup-buildx-action@v3
44+
# Only with correctly restored build cache layers, the run caches work as expected.
45+
# To restore docker build layer caches, extend the docker-bake.hcl to use the cache-from and cache-to options.
46+
# https://docs.docker.com/build/ci/github-actions/cache/
47+
# Alternatively, you can use a self-hosted runner or a third-party builder that restores build layer caches out-of-the-box, like https://depot.dev/
48+
- name: Restore Run Caches
49+
uses: actions/cache/restore@v4
50+
id: run-caches-restore
51+
with:
52+
path: ${{ env.CACHE_DIR }}
53+
key: ${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-${{github.run_attempt}}
54+
restore-keys: |
55+
${{ runner.os }}-login-run-caches-${{github.ref_name}}-${{ github.sha }}-
56+
${{ runner.os }}-login-run-caches-${{github.ref_name}}-
57+
${{ runner.os }}-login-run-caches-
58+
- run: make login_quality
59+
env:
60+
IGNORE_RUN_CACHE: ${{ github.event.inputs.ignore-run-cache == 'true' }}
61+
DOCKER_METADATA_OUTPUT_VERSION: ${{ github.event.inputs.ref-tag || env.DOCKER_METADATA_OUTPUT_VERSION || steps.meta.outputs.version }}
62+
- name: Save Run Caches
63+
uses: actions/cache/save@v4
64+
with:
65+
path: ${{ env.CACHE_DIR }}
66+
key: ${{ steps.run-caches-restore.outputs.cache-primary-key }}
67+
if: always()

.gitignore

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
custom-config.js
2-
.env*.local
3-
standalone
4-
tsconfig.tsbuildinfo
5-
cypress
6-
7-
.DS_Store
8-
node_modules
9-
.turbo
10-
*.log
11-
.next
12-
dist
13-
dist-ssr
14-
*.local
15-
.vscode
16-
/blob-report/
1+
custom-config.js
2+
.env*.local
3+
standalone
4+
tsconfig.tsbuildinfo
5+
cypress
6+
7+
.DS_Store
8+
node_modules
9+
.turbo
10+
*.log
11+
.next
12+
dist
13+
dist-ssr
14+
*.local
15+
.vscode
16+
/blob-report/
17+
config.bat

.markdownlint.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{
2-
"MD033": {
3-
"allowed_elements": ["details", "summary"]
4-
},
5-
"MD013": {
6-
"line_length": 180
7-
}
1+
{
2+
"MD033": {
3+
"allowed_elements": ["details", "summary"]
4+
},
5+
"MD013": {
6+
"line_length": 180
7+
}
88
}

.prettierignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
*
2-
!constants
3-
!src
4-
!locales
1+
*
2+
!constants
3+
!src
4+
!locales
55
!scripts/healthcheck.js

0 commit comments

Comments
 (0)