Ad
Can I Access More Than 1 Scope When Requesting For Token?
I am creating API, which has multiple access levels and I have 16 routes groups (for example users
, users-basic
, payments
, etc.) and each of them has a separate scope.
Question is - can I pass multiple scopes in authorize request? I want to manage permissions for every client oauth2 individually, that's why I am making APP scopes.
I have tried passing multiple scopes with commas, an array, etc. Nothing worked.
response: [
error: invalid_scope,
message: The requested scope is invalid, unknown, or malformed
hint: Check the `users,payments` scope
]
Ad
Answer
Just found out that you can pass scopes with spaces.. https://laravel.com/docs/5.8/passport#token-scopes Assigning Scopes To Tokens
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → October CMS - Conditionally Load a Different Page
- → How to disable assets combining on development in OctoberCMS
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → OctoberCms component: How to display all ID(items) instead of sorting only one ID?
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
Ad