{ "manifests": { "trikoder/oauth2-bundle": { "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. Provide a key pair ", " i) Generate a private/public key pair (preferably with a password): https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys", " ii) Configure the private_key and public_key with the respective key locations", " iii) (Optional) Set the private_key_passphrase to the private key password set in the previous step", "", " 2. Configure the OAuth2 encryption key ", " i) Add the OAUTH2_ENCRYPTION_KEY env variable in .env.local (don't commit your production secrets): https://oauth2.thephpleague.com/installation/#string-password", " ii) Configure the encryption_key with a secure encryption key: https://oauth2.thephpleague.com/installation/#string-password", "", " 3. Update the database ", " i) Update the database so bundle entities can be persisted using Doctrine: bin/console doctrine:schema:update --force", "", " 4. Install a PSR 7/17 implementation ", " i) Require a PSR 7/17 implementation. We recommend that you use nyholm/psr7.", " ii) (Optional) Choose a different implementation package: https://github.com/trikoder/oauth2-bundle/blob/v2.x/docs/psr-implementation-switching.md", "", " 5. Read the docs ", " i) Read the documentation at https://github.com/trikoder/oauth2-bundle/blob/v2.x/docs/basic-setup.md" ] }, "files": { "config/packages/trikoder_oauth2.yaml": { "contents": [ "trikoder_oauth2:", "", " authorization_server:", " private_key: /var/oauth/private.key # Change this", " private_key_passphrase: null # Passphrase of the private key, if any", "", " encryption_key: '%env(string:OAUTH2_ENCRYPTION_KEY)%' # (Optional) Change this", "", " resource_server:", " public_key: /var/oauth/public.key # Change this", "", " persistence:", " doctrine: null", "" ], "executable": false }, "config/routes/trikoder_oauth2.yaml": { "contents": [ "oauth2:", " resource: '@TrikoderOAuth2Bundle/Resources/config/routes.xml'", "" ], "executable": false } }, "ref": "d572e3632e6dfcabba3e81da5092b6b1b4f660c1" } } }