-
-
Save johnlokerse/6950ae23be659e3f9dab9d57e2086c46 to your computer and use it in GitHub Desktop.
Example Token based authentication schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "endpoint-auth-scheme-token", | |
"description": "i18n:Token based endpoint authentication scheme", | |
"type": "ms.vss-endpoint.service-endpoint-type", | |
"targets": [ | |
"ms.vss-endpoint.endpoint-types" | |
], | |
"properties": { | |
"name": "Token", | |
"displayName": "i18n:Token Based Authentication", | |
"authenticationSchemes": [ | |
{ | |
"type": "ms.vss-endpoint.endpoint-auth-scheme-token", | |
"headers": [ | |
{ | |
"name": "Authorization", | |
"value": "{{endpoint.apitoken}}" | |
} | |
], | |
"inputDescriptors": [ | |
{ | |
"id": "apitoken", | |
"name": "i18n:API Token", | |
"description": "i18n:API Token for connection to endpoint", | |
"inputMode": "textbox", | |
"isConfidential": true, | |
"validation": { | |
"isRequired": true, | |
"dataType": "string", | |
"maxLength": 300 | |
} | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment