OAuth2::AccessToken

abstract class OAuth2::AccessToken

Overview

Base class for the two possible access tokens: Bearer and Mac.

Use #authenticate to authenticate an HTTP::Client.

Direct Known Subclasses

Defined in:

oauth2/access_token/access_token.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(access_token : String, expires_in : Int?, refresh_token : String? = nil, scope : String? = nil)Source

def self.new(pull : JSON::PullParser)Source

Instance Method Detail

def access_token : StringSource

def access_token=(access_token : String)Source

abstract def authenticate(request : HTTP::Request, tls)Source

def authenticate(client : HTTP::Client)Source

def expires_in : Int64?Source

def expires_in=(expires_in : Int64?)Source

def refresh_token : String?Source

def refresh_token=(refresh_token : String?)Source

def scope : String?Source

def scope=(scope : String?)Source

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/OAuth2/AccessToken.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部