mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
65 lines
4.9 KiB
JSON
65 lines
4.9 KiB
JSON
{
|
|
"locks": {
|
|
"friendsofsymfony/oauth-server-bundle": {
|
|
"version": "1.6",
|
|
"recipe": {
|
|
"repo": "1.6",
|
|
"branch": "master",
|
|
"version": "1.6",
|
|
"ref": "7300db1277b1ba025cdc2791171d9bf3e7adcc42"
|
|
}
|
|
}
|
|
},
|
|
"manifests": {
|
|
"friendsofsymfony/oauth-server-bundle": {
|
|
"repository": "github.com/symfony/recipes-contrib",
|
|
"package": "friendsofsymfony/oauth-server-bundle",
|
|
"version": "1.6",
|
|
"manifest": {
|
|
"bundles": {
|
|
"FOS\\OAuthServerBundle\\FOSOAuthServerBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/",
|
|
"src/": "%SRC_DIR%/"
|
|
}
|
|
},
|
|
"files": {
|
|
"src/Entity/Client.php": {
|
|
"contents": "<?php\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse FOS\\OAuthServerBundle\\Entity\\Client as BaseClient;\n\n/**\n * @ORM\\Entity\n */\nclass Client extends BaseClient\n{\n /**\n * @ORM\\Id\n * @ORM\\GeneratedValue\n * @ORM\\Column(type=\"integer\")\n */\n protected $id;\n}\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
},
|
|
"src/Entity/AccessToken.php": {
|
|
"contents": "<?php\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse FOS\\OAuthServerBundle\\Entity\\AccessToken as BaseAccessToken;\n\n/**\n * @ORM\\Entity\n */\nclass AccessToken extends BaseAccessToken\n{\n /**\n * @ORM\\Id\n * @ORM\\GeneratedValue\n * @ORM\\Column(type=\"integer\")\n */\n protected $id;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\Client\")\n * @ORM\\JoinColumn(nullable=false)\n */\n protected $client;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\User\")\n * @ORM\\JoinColumn(onDelete=\"CASCADE\")\n */\n protected $user;\n}\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
},
|
|
"src/Entity/RefreshToken.php": {
|
|
"contents": "<?php\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse FOS\\OAuthServerBundle\\Entity\\RefreshToken as BaseRefreshToken;\n\n/**\n * @ORM\\Entity\n */\nclass RefreshToken extends BaseRefreshToken\n{\n /**\n * @ORM\\Id\n * @ORM\\GeneratedValue\n * @ORM\\Column(type=\"integer\")\n */\n protected $id;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\Client\")\n * @ORM\\JoinColumn(nullable=false)\n */\n protected $client;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\User\")\n * @ORM\\JoinColumn(onDelete=\"CASCADE\")\n */\n protected $user;\n}\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
},
|
|
"src/Entity/AuthCode.php": {
|
|
"contents": "<?php\n\nnamespace App\\Entity;\n\nuse Doctrine\\ORM\\Mapping as ORM;\nuse FOS\\OAuthServerBundle\\Entity\\AuthCode as BaseAuthCode;\n\n/**\n * @ORM\\Entity\n */\nclass AuthCode extends BaseAuthCode\n{\n /**\n * @ORM\\Id\n * @ORM\\GeneratedValue\n * @ORM\\Column(type=\"integer\")\n */\n protected $id;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\Client\")\n * @ORM\\JoinColumn(nullable=false)\n */\n protected $client;\n\n /**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\User\")\n * @ORM\\JoinColumn(onDelete=\"CASCADE\")\n */\n protected $user;\n}\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
},
|
|
"config/routes/fos_oauth_server.yaml": {
|
|
"contents": "fos_oauth_server_token:\n resource: \"@FOSOAuthServerBundle/Resources/config/routing/token.xml\"\n\nfos_oauth_server_authorize:\n resource: \"@FOSOAuthServerBundle/Resources/config/routing/authorize.xml\"\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
},
|
|
"config/packages/fos_oauth_server.yaml": {
|
|
"contents": "# Read the documentation: https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/blob/master/Resources/doc/index.md#step-5-configure-fosoauthserverbundle\nfos_oauth_server:\n db_driver: orm\n\n client_class: App\\Entity\\Client\n access_token_class: App\\Entity\\AccessToken\n refresh_token_class: App\\Entity\\RefreshToken\n auth_code_class: App\\Entity\\AuthCode\n",
|
|
"executable": false,
|
|
"encoding": ""
|
|
}
|
|
},
|
|
"origin": "friendsofsymfony/oauth-server-bundle:1.6@github.com/symfony/recipes-contrib:master",
|
|
"is_contrib": true
|
|
}
|
|
}
|
|
} |