[GO][Question] Custom auth method
Created by: kuskoman
I am trying to create a custom auth method for Go client of an application. The auth method requires either to generate a new token every request, or to do it every x minutes. The token is generated locally and its generation can throw an error. I tried to create a custom context, similar to this used in AccessToken Authentication, but I can only provide a static value, not a value which is generated every request. As far as I uderstand, this code: https://github.com/OpenAPITools/openapi-generator/blob/14d41310b968b47bf2a6bc89bbc9c7dadffaca06/modules/openapi-generator/src/main/resources/go/client.mustache#L332-L376 limits my possibilities to provide custom auth method. Is there any way to workaround this? If not, are you willing to review a PR containing code allowing to create custom auth methods (and if so, how would you want it to look like)? Thanks in advance