class V1::Remote::Transport::Bearer

Defined in:

v1/remote/transport/bearer.cr

Constructors

Instance Method Summary

Instance methods inherited from class V1::Remote::Transport::AuthHandler

client : Cossack::Client client

Constructor Detail

def self.new(client, basic, registry, realm, service, scopes, scheme, bearer = Authn::Bearer.new("")) #

[View source]

Instance Method Detail

def bearer : Authn::Bearer #

Holds the bearer response from the token service.


[View source]
def client : Cossack::Client #

[View source]
def realm : String #

See https://tools.ietf.org/html/rfc6750#section-3


[View source]
def refresh #

[View source]
def registry : Name::Registry #

Registry to which we send bearer tokens.


[View source]
def scheme : String #

Scheme we should use, determined by ping response.


[View source]
def scopes : Array(String) #

[View source]
def update(resp) #

[View source]