mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Tweak formatting
This commit is contained in:
@@ -2,24 +2,24 @@
|
||||
<bg=blue;fg=white> OAuth2 Configuration </>
|
||||
<bg=blue;fg=white> </>
|
||||
|
||||
1. <options=bold,underscore>Provide a key pair</>
|
||||
1. <question>Provide a key pair</>
|
||||
i) Generate a private/public key pair (preferably with a password): <comment>https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys</>
|
||||
ii) Configure the <info>private_key</> and <info>public_key</> with the respective key locations
|
||||
iii) (Optional) Set the <info>private_key_passphrase</> to the private key password set in the previous step
|
||||
|
||||
2. <options=bold,underscore>Configure the OAuth2 encryption key</>
|
||||
2. <question>Configure the OAuth2 encryption key</>
|
||||
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</>
|
||||
ii) Configure the <info>encryption_key</> with a secure encryption key: <comment>https://oauth2.thephpleague.com/installation/#string-password</>
|
||||
|
||||
3. <options=bold,underscore>Update the database</>
|
||||
3. <question>Update the database</>
|
||||
* Update the database so bundle entities can be persisted using Doctrine: <comment>bin/console doctrine:schema:update --force</>
|
||||
|
||||
4. <options=bold,underscore>Import routes</>
|
||||
4. <question>Import routes</>
|
||||
* Import the routes inside your <info>config/routes.yaml</> file:
|
||||
<comment>
|
||||
oauth2:
|
||||
resource: '@TrikoderOAuth2Bundle/Resources/config/routes.xml'
|
||||
</>
|
||||
|
||||
5. <options=bold,underscore>Read the docs</>
|
||||
5. <question>Read the docs</>
|
||||
* Read the documentation at <comment>https://github.com/trikoder/oauth2-bundle/blob/master/docs/basic-setup.md</>
|
||||
|
||||
Reference in New Issue
Block a user