Skip to content

Commit 4feb9a0

Browse files
committed
Manifests compiler
1 parent a0208ff commit 4feb9a0

File tree

14 files changed

+136
-142
lines changed

14 files changed

+136
-142
lines changed

.github/versions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"splits": {
3+
4+
}
5+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Update Flex endpoint
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
branch:
7+
default: main
8+
required: false
9+
type: string
10+
contrib:
11+
required: false
12+
type: boolean
13+
versions_json:
14+
required: false
15+
type: string
16+
17+
jobs:
18+
flex-update:
19+
name: Update Flex endpoint
20+
runs-on: Ubuntu-20.04
21+
22+
steps:
23+
-
24+
name: Checkout
25+
uses: actions/checkout@v2
26+
id: checkout
27+
with:
28+
fetch-depth: 0
29+
30+
-
31+
name: Install tools
32+
run: |
33+
git config --global user.email ""
34+
git config --global user.name "github-action[bot]"
35+
cd .github
36+
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
37+
unzip recipes-checker.zip
38+
cd recipes-checker-main
39+
composer install --ansi --no-dev
40+
41+
-
42+
name: Update Flex endpoint
43+
run: |
44+
mkdir .github/flex-endpoint
45+
git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} ${{ inputs.branch }} main .github/flex-endpoint ${{ inputs.versions_json }}
46+
git switch main
47+
git rm -q *.json
48+
mv .github/flex-endpoint/*.json .
49+
git add *.json
50+
cp -a .github/flex-endpoint/archived .
51+
git add archived/
52+
git commit -m 'Update Flex endpoint' || true
53+
git push origin -f main

.github/workflows/flex-update.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Update Flex endpoint
2+
3+
on:
4+
push:
5+
branches:
6+
- tree
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
call-flex-update:
14+
uses: web-auth/recipes/.github/workflows/callable-flex-update.yml@tree
15+
with:
16+
branch: tree
17+
versions_json: .github/versions.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ WebAuthn recipes allow the automation of Composer packages configuration via the
55
`Symfony Flex` Composer plugin.
66

77
This repository contains "official" recipes for Composer packages endorsed by
8-
the Spomky-Labs.
8+
Spomky-Labs.

index.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

web-auth.webauthn-framework.4.0.json

Lines changed: 0 additions & 62 deletions
This file was deleted.

web-auth.webauthn-symfony-bundle.4.0.json

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Please see the following page for more information: https://webauthn-doc.spomky-labs.com/the-webauthn-server/the-symfony-way#configuration
2+
3+
webauthn:
4+
credential_repository: 'Webauthn\Bundle\Repository\DummyPublicKeyCredentialSourceRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!
5+
user_repository: 'Webauthn\Bundle\Repository\DummyPublicKeyCredentialUserEntityRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!
6+
creation_profiles:
7+
default:
8+
rp:
9+
name: '%env(RELAYING_PARTY_NAME)%' # Please adapt the env file with the correct relaying party ID or set null
10+
id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null
11+
request_profiles:
12+
default:
13+
rp_id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
webauthn_routes:
2+
resource: .
3+
type: webauthn
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"bundles": {
3+
"Webauthn\\Bundle\\WebauthnBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%"
7+
},
8+
"env": {
9+
"RELAYING_PARTY_ID": "example.com",
10+
"RELAYING_PARTY_NAME": "My Application"
11+
}
12+
}

0 commit comments

Comments
 (0)