forked from loafle/openapi-generator-original
* [cpp][pistache-server] Add extraction and forwarding of credentials for HTTP Basic protected endpoints. * [cpp][pistache-server] Change HTTP Basic credentials to be contained on a struct instead of two std::strings * [cpp][pistache-server] Add callbacks to authenticate http basic credentials. * [cpp][pistache-server] Add `void* userdata` to HttpBasicCredentials. This allows for data ft be passed on from the authenticator to the handler implementation. For example a userid that has already been looked up * [cpp][pistache-server] Add support for HTTP Bearer authentication. * [cpp][pistache-server] Add new file `api-base-source.mustache` `api-base-source.mustache` contain implementations of security related methods and also the empty constructor. * [cpp][pistache-server] Add re-generated samples. * Fix PR 19978: Updated indentation levels and fixed test problems --------- Co-authored-by: Morten Winkler <morten@winkler.dk>