Files
symfony-flex-recipes-contrib/trikoder.oauth2-bundle.2.0.json
T
github-action botandgithub-action bot af31901ef8 Update Flex endpoint
2021-09-20 16:15:05 +00:00

50 lines
3.7 KiB
JSON

{
"locks": {
"trikoder/oauth2-bundle": {
"version": "2.0",
"recipe": {
"repo": "2.0",
"branch": "master",
"version": "2.0",
"ref": "d572e3632e6dfcabba3e81da5092b6b1b4f660c1"
}
}
},
"manifests": {
"trikoder/oauth2-bundle": {
"repository": "github.com/symfony/recipes-contrib",
"package": "trikoder/oauth2-bundle",
"version": "2.0",
"manifest": {
"bundles": {
"Trikoder\\Bundle\\OAuth2Bundle\\TrikoderOAuth2Bundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "Fallback OAuth2 encryption key",
"#2": "Please override this with a secure value: https://oauth2.thephpleague.com/installation/#string-password",
"OAUTH2_ENCRYPTION_KEY": "%generate(secret)%"
},
"post-install-output": " 1. <bg=magenta;fg=white> Provide a key pair </>\n i) Generate a private/public key pair (preferably with a password): <comment>https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys</>\n ii) Configure the <info>private_key</> and <info>public_key</> with the respective key locations\n iii) (Optional) Set the <info>private_key_passphrase</> to the private key password set in the previous step\n\n 2. <bg=magenta;fg=white> Configure the OAuth2 encryption key </>\n i) Add the <info>OAUTH2_ENCRYPTION_KEY</> env variable in <info>.env.local</> (don't commit your production secrets): <comment>https://oauth2.thephpleague.com/installation/#string-password</>\n ii) Configure the <info>encryption_key</> with a secure encryption key: <comment>https://oauth2.thephpleague.com/installation/#string-password</>\n\n 3. <bg=magenta;fg=white> Update the database </>\n i) Update the database so bundle entities can be persisted using Doctrine: <comment>bin/console doctrine:schema:update --force</>\n\n 4. <bg=magenta;fg=white> Install a PSR 7/17 implementation </>\n i) Require a PSR 7/17 implementation. We recommend that you use nyholm/psr7.\n ii) (Optional) Choose a different implementation package: <comment>https://github.com/trikoder/oauth2-bundle/blob/v2.x/docs/psr-implementation-switching.md</>\n\n 5. <bg=magenta;fg=white> Read the docs </>\n i) Read the documentation at <comment>https://github.com/trikoder/oauth2-bundle/blob/v2.x/docs/basic-setup.md</>\n"
},
"files": {
"config/routes/trikoder_oauth2.yaml": {
"contents": "oauth2:\n resource: '@TrikoderOAuth2Bundle/Resources/config/routes.xml'\n",
"executable": false,
"encoding": ""
},
"config/packages/trikoder_oauth2.yaml": {
"contents": "trikoder_oauth2:\n\n authorization_server:\n private_key: /var/oauth/private.key # Change this\n private_key_passphrase: null # Passphrase of the private key, if any\n\n encryption_key: '%env(string:OAUTH2_ENCRYPTION_KEY)%' # (Optional) Change this\n\n resource_server:\n public_key: /var/oauth/public.key # Change this\n\n persistence:\n doctrine: null\n",
"executable": false,
"encoding": ""
}
},
"origin": "trikoder/oauth2-bundle:2.0@github.com/symfony/recipes-contrib:master",
"is_contrib": true
}
}
}