Authorize the API docs as an account of the users registry: their Authorize dialog's OAuth2 password flow, the account's user name and password. Every operation tried out after it is sent with the account's token.
Examples
When I authorize the API docs as "admin"
Given I authorize the API docs as "user"
And we authorize the API docs as "editor"
When authorize the API docs as "manager"
And I authorize the API docs as "admin"
Pattern
When(/^(?:I |we )?authorize the API docs as "([^"]+)"$/, …)
Part of @webship-js/fastapi-steps (github.com/webship/fastapi-steps), a step pack for Webship-js 2.0.x.