mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 23:56:25 +03:00
Create Flex endpoint
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"aliases": {
|
||||
"oauth-server": "league/oauth2-server-bundle",
|
||||
"oauth2-server": "league/oauth2-server-bundle",
|
||||
"oauth2server": "league/oauth2-server-bundle",
|
||||
"oauthserver": "league/oauth2-server-bundle"
|
||||
},
|
||||
"recipes": {
|
||||
"league/oauth2-server-bundle": [
|
||||
"0.4",
|
||||
"0.11",
|
||||
"1.2"
|
||||
]
|
||||
},
|
||||
"recipe-conflicts": [],
|
||||
"versions": [],
|
||||
"branch": "main",
|
||||
"is_contrib": false,
|
||||
"_links": {
|
||||
"repository": "github.com/symfony/recipes",
|
||||
"origin_template": "{package}:{version}@github.com/symfony/recipes:main",
|
||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1550/{package_dotted}.{version}.json",
|
||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes/flex/pull-1550/archived/{package_dotted}/{ref}.json",
|
||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"manifests": {
|
||||
"league/oauth2-server-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"League\\Bundle\\OAuth2ServerBundle\\LeagueOAuth2ServerBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"OAUTH_PRIVATE_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
|
||||
"OAUTH_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
|
||||
"OAUTH_PASSPHRASE": "%generate(secret)%",
|
||||
"OAUTH_ENCRYPTION_KEY": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
],
|
||||
"post-install-output": [
|
||||
" 1. <bg=magenta;fg=white> Provide a key pair </>",
|
||||
" * Generate a private/public key pair by running</> <comment>php bin/console league:oauth2-server:generate-keypair</>",
|
||||
"",
|
||||
" 2. <bg=magenta;fg=white> Update the database schema </>",
|
||||
" * Update your database schema so that bundle entities can be managed by Doctrine",
|
||||
"",
|
||||
" 3. <bg=magenta;fg=white> Read the docs </>",
|
||||
" * Read the documentation at <comment>https://github.com/thephpleague/oauth2-server-bundle/blob/master/docs/index.md</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"league_oauth2_server:",
|
||||
" authorization_server:",
|
||||
" private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%'",
|
||||
" private_key_passphrase: '%env(resolve:OAUTH_PASSPHRASE)%'",
|
||||
" encryption_key: '%env(resolve:OAUTH_ENCRYPTION_KEY)%'",
|
||||
" resource_server:",
|
||||
" public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%'",
|
||||
" scopes:",
|
||||
" available: ['email']",
|
||||
" default: ['email']",
|
||||
" persistence:",
|
||||
" doctrine: null",
|
||||
"",
|
||||
"when@test:",
|
||||
" league_oauth2_server:",
|
||||
" persistence:",
|
||||
" in_memory: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"league_oauth2_server:",
|
||||
" resource: '@LeagueOAuth2ServerBundle/config/routes.php'",
|
||||
" type: php",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b40f5dd1cb1761570881520b9d3d7edae9c220cc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"manifests": {
|
||||
"league/oauth2-server-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"League\\Bundle\\OAuth2ServerBundle\\LeagueOAuth2ServerBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"OAUTH_PRIVATE_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
|
||||
"OAUTH_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
|
||||
"OAUTH_PASSPHRASE": "%generate(secret)%",
|
||||
"OAUTH_ENCRYPTION_KEY": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
],
|
||||
"post-install-output": [
|
||||
" 1. <bg=magenta;fg=white> Provide a key pair </>",
|
||||
" * Generate a private/public key pair at the locations defined in your .env file, using the value of the <info>OAUTH_PASSPHRASE</> as passphrase: <comment>https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys</>",
|
||||
"",
|
||||
" 2. <bg=magenta;fg=white> Update the database schema </>",
|
||||
" * Update your database schema so that bundle entities can be managed by Doctrine",
|
||||
"",
|
||||
" 3. <bg=magenta;fg=white> Read the docs </>",
|
||||
" * Read the documentation at <comment>https://github.com/thephpleague/oauth2-server-bundle/blob/master/docs/index.md</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"league_oauth2_server:",
|
||||
" authorization_server:",
|
||||
" private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%'",
|
||||
" private_key_passphrase: '%env(resolve:OAUTH_PASSPHRASE)%'",
|
||||
" encryption_key: '%env(resolve:OAUTH_ENCRYPTION_KEY)%'",
|
||||
" resource_server:",
|
||||
" public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%'",
|
||||
" scopes:",
|
||||
" available: ['email']",
|
||||
" default: ['email']",
|
||||
" persistence:",
|
||||
" doctrine: null",
|
||||
"",
|
||||
"when@test:",
|
||||
" league_oauth2_server:",
|
||||
" persistence:",
|
||||
" in_memory: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"oauth2_server:",
|
||||
" resource: '@LeagueOAuth2ServerBundle/Resources/config/routes.php'",
|
||||
" type: php",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7f26963037fce3b69c1b3f6a75a3265edb1e1caa"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"manifests": {
|
||||
"league/oauth2-server-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"League\\Bundle\\OAuth2ServerBundle\\LeagueOAuth2ServerBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"OAUTH_PRIVATE_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
|
||||
"OAUTH_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
|
||||
"OAUTH_PASSPHRASE": "%generate(secret)%",
|
||||
"OAUTH_ENCRYPTION_KEY": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
],
|
||||
"post-install-output": [
|
||||
" 1. <bg=magenta;fg=white> Provide a key pair </>",
|
||||
" * Generate a private/public key pair by running</> <comment>php bin/console league:oauth2-server:generate-keypair</>",
|
||||
"",
|
||||
" 2. <bg=magenta;fg=white> Update the database schema </>",
|
||||
" * Update your database schema so that bundle entities can be managed by Doctrine",
|
||||
"",
|
||||
" 3. <bg=magenta;fg=white> Read the docs </>",
|
||||
" * Read the documentation at <comment>https://github.com/thephpleague/oauth2-server-bundle/blob/master/docs/index.md</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"league_oauth2_server:",
|
||||
" authorization_server:",
|
||||
" private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%'",
|
||||
" private_key_passphrase: '%env(resolve:OAUTH_PASSPHRASE)%'",
|
||||
" encryption_key: '%env(resolve:OAUTH_ENCRYPTION_KEY)%'",
|
||||
" # Both grants are disabled by default and will be removed in 2.0. Enable them only if you need them.",
|
||||
" enable_password_grant: false",
|
||||
" enable_implicit_grant: false",
|
||||
" resource_server:",
|
||||
" public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%'",
|
||||
" scopes:",
|
||||
" available: ['email']",
|
||||
" default: ['email']",
|
||||
" persistence:",
|
||||
" doctrine: null",
|
||||
" client:",
|
||||
" # Store client secrets hashed. Set to true only to keep supporting legacy plaintext secrets.",
|
||||
" allow_plaintext_secrets: false",
|
||||
"",
|
||||
"when@test:",
|
||||
" league_oauth2_server:",
|
||||
" persistence:",
|
||||
" in_memory: null",
|
||||
"",
|
||||
" services:",
|
||||
" # Use the lowest bcrypt cost to speed up client secret hashing in tests.",
|
||||
" league.oauth2_server.password_hasher:",
|
||||
" class: Symfony\\Component\\PasswordHasher\\Hasher\\NativePasswordHasher",
|
||||
" arguments:",
|
||||
" $cost: 4 # Lowest possible value for bcrypt",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/league_oauth2_server.yaml": {
|
||||
"contents": [
|
||||
"league_oauth2_server:",
|
||||
" resource: '@LeagueOAuth2ServerBundle/config/routes.php'",
|
||||
" type: php",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "374de24b3639ca6802e0b4f000fe2a56428f95a3"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user