* create `features` folder * add base oauth2 server * continue implementing OAuth tests * WIP * add password flow tests * modify Password flow credential types * remove query string credential type * add test case for Authorization flow * add specific Authorization value for Password flow test * WIP * fix linter issues
37 lines
717 B
YAML
37 lines
717 B
YAML
swagger: "2.0"
|
|
host: localhost:3231
|
|
paths:
|
|
/password:
|
|
get:
|
|
summary: OAuth2 Password
|
|
security:
|
|
- oauthPassword: []
|
|
responses:
|
|
200:
|
|
description: OK
|
|
schema:
|
|
type: string
|
|
/application:
|
|
get:
|
|
summary: OAuth2 Application
|
|
security:
|
|
- oauthApplication: []
|
|
responses:
|
|
200:
|
|
description: OK
|
|
schema:
|
|
type: string
|
|
securityDefinitions:
|
|
oauthPassword:
|
|
type: oauth2
|
|
flow: password
|
|
tokenUrl: /oauth/token
|
|
oauthApplication:
|
|
type: oauth2
|
|
flow: application
|
|
tokenUrl: /oauth/token
|
|
oauthImplicit:
|
|
type: oauth2
|
|
flow: implicit
|
|
authorizationUrl: /oauth/token
|