Skip to content

Commit 8ee3177

Browse files
authored
Merge pull request #1397 from chalasr/oauth2-server-0.11
[league/oauth2-server-bundle] Add v0.11 recipe
2 parents 52d9ace + 8d486e3 commit 8ee3177

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
league_oauth2_server:
2+
authorization_server:
3+
private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%'
4+
private_key_passphrase: '%env(resolve:OAUTH_PASSPHRASE)%'
5+
encryption_key: '%env(resolve:OAUTH_ENCRYPTION_KEY)%'
6+
resource_server:
7+
public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%'
8+
scopes:
9+
available: ['email']
10+
default: ['email']
11+
persistence:
12+
doctrine: null
13+
14+
when@test:
15+
league_oauth2_server:
16+
persistence:
17+
in_memory: null
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
league_oauth2_server:
2+
resource: '@LeagueOAuth2ServerBundle/config/routes.php'
3+
type: php
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"bundles": {
3+
"League\\Bundle\\OAuth2ServerBundle\\LeagueOAuth2ServerBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"env": {
9+
"OAUTH_PRIVATE_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
10+
"OAUTH_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
11+
"OAUTH_PASSPHRASE": "%generate(secret)%",
12+
"OAUTH_ENCRYPTION_KEY": "%generate(secret)%"
13+
},
14+
"aliases": ["oauth2-server", "oauth-server"]
15+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
1. <bg=magenta;fg=white> Provide a key pair </>
2+
* Generate a private/public key pair by running</> <comment>php bin/console league:oauth2-server:generate-keypair</>
3+
4+
2. <bg=magenta;fg=white> Update the database schema </>
5+
* Update your database schema so that bundle entities can be managed by Doctrine
6+
7+
3. <bg=magenta;fg=white> Read the docs </>
8+
* Read the documentation at <comment>https://github.com/thephpleague/oauth2-server-bundle/blob/master/docs/index.md</>

0 commit comments

Comments
 (0)