Skip to content

Commit a0208ff

Browse files
committed
First Flex Recipes
0 parents  commit a0208ff

File tree

4 files changed

+149
-0
lines changed

4 files changed

+149
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
WebAuthn Recipes
2+
================
3+
4+
WebAuthn recipes allow the automation of Composer packages configuration via the
5+
`Symfony Flex` Composer plugin.
6+
7+
This repository contains "official" recipes for Composer packages endorsed by
8+
the Spomky-Labs.

index.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"recipes": {
3+
"web-auth/webauthn-framework": [
4+
"4.0"
5+
],
6+
"web-auth/webauthn-symfony-bundle": [
7+
"4.0"
8+
]
9+
},
10+
"branch": "main",
11+
"is_contrib": true,
12+
"_links": {
13+
"repository": "github.com/web-auth/recipes",
14+
"origin_template": "{package}:{version}@github.com/web-auth/recipes:main",
15+
"recipe_template": "https://api.github.com/repos/web-auth/recipes/contents/{package_dotted}.{version}.json?ref=main"
16+
}
17+
}

web-auth.webauthn-framework.4.0.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"manifests": {
3+
"web-auth/webauthn-framework": {
4+
"manifest": {
5+
"bundles": {
6+
"Webauthn\\Bundle\\WebauthnBundle": [
7+
"all"
8+
]
9+
},
10+
"copy-from-recipe": {
11+
"config/": "%CONFIG_DIR%/"
12+
},
13+
"env": {
14+
"RELAYING_PARTY_ID": "example.com",
15+
"RELAYING_PARTY_NAME": "My Application"
16+
},
17+
"post-install-output": [
18+
" * WebAuthn Framework is almost ready. You can now configure it",
19+
" * and create:",
20+
" 1. Your Public Key Credential Source Repository",
21+
" 2. Your User Entity Repository",
22+
"",
23+
" * The configuration file is located in <comment>config/packages/webauthn.yaml</>",
24+
"",
25+
" * Please read the documentation at <comment>https://webauthn-doc.spomky-labs.com/the-webauthn-server/the-symfony-way</>."
26+
]
27+
},
28+
"files": {
29+
"config/packages/webauthn.yaml": {
30+
"contents": [
31+
"# Please see the following page for more information: https://webauthn-doc.spomky-labs.com/the-webauthn-server/the-symfony-way#configuration",
32+
"",
33+
"webauthn:",
34+
" mapping:",
35+
" credential_repository: 'Webauthn\\Bundle\\Repository\\DummyPublicKeyCredentialSourceRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!",
36+
" user_repository: 'Webauthn\\Bundle\\Repository\\DummyPublicKeyCredentialUserEntityRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!",
37+
" creation_profiles:",
38+
" default:",
39+
" rp:",
40+
" name: '%env(RELAYING_PARTY_NAME)%' # Please adapt the env file with the correct relaying party ID or set null",
41+
" id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null",
42+
" request_profiles:",
43+
" default:",
44+
" rp_id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null",
45+
""
46+
],
47+
"executable": false
48+
},
49+
"config/routes/webauthn.yaml": {
50+
"contents": [
51+
"webauthn_routes:",
52+
" resource: .",
53+
" type: webauthn",
54+
""
55+
],
56+
"executable": false
57+
}
58+
},
59+
"ref": "409904911861c2137ca948bfec98b068005064ea"
60+
}
61+
}
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"manifests": {
3+
"web-auth/webauthn-symfony-bundle": {
4+
"manifest": {
5+
"bundles": {
6+
"Webauthn\\Bundle\\WebauthnBundle": [
7+
"all"
8+
]
9+
},
10+
"copy-from-recipe": {
11+
"config/": "%CONFIG_DIR%/"
12+
},
13+
"env": {
14+
"RELAYING_PARTY_ID": "example.com",
15+
"RELAYING_PARTY_NAME": "My Application"
16+
},
17+
"post-install-output": [
18+
" * WebAuthn Bundle is almost ready. You can now configure it",
19+
" * and create:",
20+
" 1. Your Public Key Credential Source Repository",
21+
" 2. Your User Entity Repository",
22+
"",
23+
" * The configuration file is located in <comment>config/packages/webauthn.yaml</>",
24+
"",
25+
" * Please read the documentation at <comment>https://webauthn-doc.spomky-labs.com/the-webauthn-server/the-symfony-way</>."
26+
]
27+
},
28+
"files": {
29+
"config/packages/webauthn.yaml": {
30+
"contents": [
31+
"# Please see the following page for more information: https://webauthn-doc.spomky-labs.com/the-webauthn-server/the-symfony-way#configuration",
32+
"",
33+
"webauthn:",
34+
" mapping:",
35+
" credential_repository: 'Webauthn\\Bundle\\Repository\\DummyPublicKeyCredentialSourceRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!",
36+
" user_repository: 'Webauthn\\Bundle\\Repository\\DummyPublicKeyCredentialUserEntityRepository' # CREATE YOUR REPOSITORY AND CHANGE THIS!",
37+
" creation_profiles:",
38+
" default:",
39+
" rp:",
40+
" name: '%env(RELAYING_PARTY_NAME)%' # Please adapt the env file with the correct relaying party ID or set null",
41+
" id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null",
42+
" request_profiles:",
43+
" default:",
44+
" rp_id: '%env(RELAYING_PARTY_ID)%' # Please adapt the env file with the correct relaying party ID or set null",
45+
""
46+
],
47+
"executable": false
48+
},
49+
"config/routes/webauthn.yaml": {
50+
"contents": [
51+
"webauthn_routes:",
52+
" resource: .",
53+
" type: webauthn",
54+
""
55+
],
56+
"executable": false
57+
}
58+
},
59+
"ref": "1f432c51800ef8fc50afd6b0c9a1fcea069dcd7a"
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)