koenreiniers / oauth-server-bundle
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
This package is not auto-updated.
Last update: 2025-01-24 18:49:37 UTC
README
Add to routing.yml:
kr_oauth_server: resource: "@KrOAuthServerBundle/Controller" type: annotation
Add to config.yml:
kr_oauth_server: classmap: access_token: AcmeBundle\Entity\AccessToken refresh_token: AcmeBundle\Entity\RefreshToken client: AcmeBundle\Entity\Client authorization_code: AcmeBundle\Entity\AuthorizationCode
Add to security.yml:
oauth_token:
pattern: ^/oauth/token
stateless: true
grant_request: true
oauth_auth:
pattern: ^/oauth/auth
form_login:
provider: fos_userbundle
csrf_token_generator: security.csrf.token_manager
check_path: /oauth/auth/login_check
logout: true
anonymous: true
oauth_resource:
pattern: ^/api/v1
stateless: true
oauth: true