I have defined basic auth functionality in yml that I have published on the developer portal to get the access token. But when I trigger a request after entering client id and secret, I get {"ErrorCode" : "invalid_client", "Error" :"Client identifier is required"}. However, the same creds works from other testing tools such as Postman.
In this using the integrated portal, or the Drupal-based portal? Can you share the relevant portion of your OpenAPI spec?
@Karl ScheirerI am using the integrated portal. Below is the spec snippet .
basePath: /token
schemes:
- https
- http
securityDefinitions:
basicAuth:
type: basic
description: HTTP Basic Authentication.
consumes:
- application/json;charset=utf-8
produces:
- application/json;charset=utf-8
paths:
/gettoken:
get:
security:
- basicAuth: []
summary: Validate access using basic authentication
operationId: GetAccessToken
consumes: []
produces:
- application/json
parameters:
- name: grant_type
in: query
required: true
type: string
responses:
'200':
description: Success
@Shivakumar Sudi Have you checked your CORS policy if its allowing the header (Authorization) where you are sending the credentials
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |