diff --git a/trikoder/oauth2-bundle/2.0/manifest.json b/trikoder/oauth2-bundle/2.0/manifest.json index 0ee9f4f3..0754fe29 100644 --- a/trikoder/oauth2-bundle/2.0/manifest.json +++ b/trikoder/oauth2-bundle/2.0/manifest.json @@ -6,6 +6,8 @@ "config/": "%CONFIG_DIR%/" }, "env": { + "#1": "Fallback OAuth2 encryption key", + "#2": "Please change this with a secure value: https://oauth2.thephpleague.com/installation/#string-password", "OAUTH2_ENCRYPTION_KEY": "%generate(secret)%" } } diff --git a/trikoder/oauth2-bundle/2.0/post-install.txt b/trikoder/oauth2-bundle/2.0/post-install.txt index 182d1126..09e96ed4 100644 --- a/trikoder/oauth2-bundle/2.0/post-install.txt +++ b/trikoder/oauth2-bundle/2.0/post-install.txt @@ -2,24 +2,24 @@ OAuth2 Configuration - 0. (Optional) Do one of the following - i) Change the OAUTH2_ENCRYPTION_KEY env variable: https://oauth2.thephpleague.com/installation/#string-password - ii) Configure the encryption_key with a secure encryption key: https://oauth2.thephpleague.com/installation/#string-password - 1. 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. - * Update the database so bundle entities can be persisted using Doctrine: bin/console doctrine:schema:update --force + 2. Do one of the following + 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 so bundle entities can be persisted using Doctrine: bin/console doctrine:schema:update --force + + 4. * Import the routes inside your config/routes.yaml file: oauth2: resource: '@TrikoderOAuth2Bundle/Resources/config/routes.xml' - 4. + 5. * Read the documentation at https://github.com/trikoder/oauth2-bundle/blob/master/docs/basic-setup.md