-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4474 from okazy/experimental/oauth2
API: GraphQLとOAuth2.0の実装
- Loading branch information
Showing
25 changed files
with
1,463 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
# Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories) | ||
Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory' | ||
|
||
# Register nyholm/psr7 services for autowiring with HTTPlug factories | ||
Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory' | ||
Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory' | ||
Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory' | ||
Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory' | ||
Http\Message\UriFactory: '@nyholm.psr7.httplug_factory' | ||
|
||
nyholm.psr7.psr17_factory: | ||
class: Nyholm\Psr7\Factory\Psr17Factory | ||
|
||
nyholm.psr7.httplug_factory: | ||
class: Nyholm\Psr7\Factory\HttplugFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
trikoder_oauth2: | ||
|
||
authorization_server: | ||
private_key: '%kernel.project_dir%/var/oauth/private.key' | ||
private_key_passphrase: null | ||
|
||
encryption_key: '%env(string:OAUTH2_ENCRYPTION_KEY)%' | ||
|
||
resource_server: | ||
public_key: '%kernel.project_dir%/var/oauth/public.key' | ||
|
||
scopes: ['read', 'write'] | ||
|
||
persistence: | ||
doctrine: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
oauth2: | ||
resource: '@TrikoderOAuth2Bundle/Resources/config/routes.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.