class HaveAPI::Authentication::OAuth2::Config

Config passed to the OAuth2 provider

Create your own subclass and pass it to {HaveAPI::Authentication::OAuth2.with_config}. The created provider can then be added to authentication chain.

In general, it is up to the implementation to provide the authentication flow – render HTML page in {#handle_get_authorize} and then process it in {#handle_post_authorize}. The implementation must also handle generation of all needed tokens, their persistence and validity checking.