lparkes / swagger-codegen-generators

Apache License 2.0
0 stars 0 forks source link

Issue/contexts #18

Closed lparkes closed 1 year ago

lparkes commented 1 year ago

Each API endpoint now has two client interfaces, one with a context and one without.

All use of contexts for auth has been removed.

There are three simple methods for the APIClient type that register autentication credentials and there is no longer any way to supply Oauth 2 tokens. You can still supply an Oauth 2 customised HTTP client which, quite frankly, is the right way to do it.

The API client knows which credentials to send to which endpoints because that's specified in the OpenAPI input. There is no need for the developer to code that into each API call.