Add mock OAuth2 provider to testproj

This commit is contained in:
Cristi Vîjdea
2018-12-21 01:02:01 +02:00
committed by Cristi Vijdea
parent bbed2acf06
commit b385228f7d
7 changed files with 116 additions and 5 deletions
+8
View File
@@ -27,6 +27,13 @@ securityDefinitions:
in: header
name: Authorization
type: apiKey
OAuth2 password:
flow: password
scopes:
read: Read everything.
write: Write everything,
tokenUrl: http://test.local:8002/o/token/
type: oauth2
Query:
in: query
name: auth
@@ -34,6 +41,7 @@ securityDefinitions:
security:
- Basic: []
- Bearer: []
- OAuth2 password: []
- Query: []
paths:
/articles/: