#123 add some comments

This commit is contained in:
hjacobs
2016-01-22 19:41:44 +01:00
parent fcb20c7e05
commit f21b91f75f
3 changed files with 6 additions and 1 deletions

View File

@@ -11,12 +11,16 @@ paths:
schema:
type: string
security:
# enable authentication and require the "uid" scope for this endpoint
- oauth2: ['uid']
securityDefinitions:
oauth2:
type: oauth2
flow: implicit
authorizationUrl: https://example.com/oauth2/dialog
# the token info URL is hardcoded for our mock_tokeninfo.py script
# you can also pass it as an environment variable HTTP_TOKENINFO_URL
x-tokenInfoUrl: http://localhost:7979/tokeninfo
scopes:
uid: Unique identifier of the user accessing the service.

View File

@@ -5,6 +5,7 @@ Mock OAuth2 token info
import connexion
# our hardcoded mock "Bearer" access tokens
TOKENS = {'123': 'jdoe',
'456': 'rms'}

View File

@@ -12,7 +12,7 @@ paths:
required: true
responses:
200:
description:
description: Token info object
schema:
type: object
properties: