oauth2 is a Ruby client library for OAuth 2.0/2.1 and OpenID Connect, simplifying authorization-code, client-credentials and other token flows.