swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector userLogin API schemes: - https tags: - name: userLogin paths: /oauth2/token: get: tags: - userLogin description: Exchange Username, Password and Scope an ACR Access Token operationId: microsoftAzureGetacraccesstokenfromlogin parameters: - name: service in: query required: true description: Indicates the name of your Azure container registry. type: string - name: scope in: query required: true description: Expected to be a valid scope, and can be specified more than once for multiple scope requests. You can obtain this from the Www-Authenticate response header from the challenge. type: string responses: '200': description: Access token acquired schema: $ref: '#/definitions/AccessToken' default: description: ACR error response describing why the operation failed. schema: $ref: '#/definitions/AcrErrors' security: - registry_auth: [] x-ms-examples: Get Access Token with username and password: $ref: ./examples/GetAccessToken.json summary: Microsoft Azure Get Oauth2 Token definitions: AcrErrors: description: Acr error response describing why the operation failed properties: errors: type: array description: Array of detailed error items: $ref: '#/definitions/AcrErrorInfo' AccessToken: type: object properties: access_token: description: The access token for performing authenticated requests type: string AcrErrorInfo: description: Error information properties: code: description: Error code type: string message: type: string description: Error message detail: type: object description: Error details x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'