Skip to content

Restricting routes by scope example #285

Description

@slawekadamek

Hello
I have a problem with Restricting routes by scope described in:
https://github.com/trikoder/oauth2-bundle/blob/v3.x/docs/basic-setup.md#restricting-routes-by-scope
there is an example which doesn't work for me:

oauth2_restricted:
path: /api/restricted
controller: 'App\Controller\FooController::barAction'
defaults:
oauth2_scopes: ['foo', 'bar']

Where - in which file should it be defined ?
in 'security.yaml' or 'trikoder_oauth2.yaml' or some other - in which section ?

Thank you :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions