Skip to content

Add support for "Bearer Authentication" for the whole APIΒ #67

@ffflorian

Description

@ffflorian

Bearer Authentication for the whole API can be enabled in Swagger when applying a security property.

swagger.json

{
 "paths": {
   // ...
 },
 "security": [
   {
     "Bearer": []
   }
 ],
 "swagger": "2.0",
}

Let's implement a general authorization setting (as suggested in #62 (comment)).

Suggestion

async deleteById(id: string): Promise<void> {
  const config: AxiosRequestConfig = {
    headers: {
      Authorization: this.config.accessToken,
    },
    method: 'delete',
    url: `/identity-providers/${id}`,
    withCredentials: true,
  };

  await this.apiClient.request(config);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions