Sha256: 6911f61666217a0f1c518c9e58cc0ed454baf7c1223d35d03d2d82d9de490198
Contents?: true
Size: 707 Bytes
Versions: 15
Compression:
Stored size: 707 Bytes
Contents
require 'haveapi/go_client/authentication/base' module HaveAPI::GoClient class Authentication::OAuth2 < Authentication::Base register :oauth2 # HTTP header the token is sent in # @return [String] attr_reader :http_header # Token revocation URL # @return [String] attr_reader :revoke_url def initialize(api_version, name, desc) super @http_header = desc[:http_header] @revoke_url = desc[:revoke_url] end def generate(gen) ErbTemplate.render_to_if_changed( 'authentication/oauth2.go', { package: gen.package, auth: self }, File.join(gen.dst, 'auth_oauth2.go') ) end end end
Version data entries
15 entries across 15 versions & 1 rubygems