Class: Couchbase::JWTAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/authenticator.rb

Overview

Authenticator using a JSON Web Token (JWT)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ JWTAuthenticator

Creates a new authenticator with a JSON Web Token (JWT)

Parameters:

  • token (String)

    the JWT



76
77
78
# File 'lib/couchbase/authenticator.rb', line 76

def initialize(token)
  @token = token
end

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



71
72
73
# File 'lib/couchbase/authenticator.rb', line 71

def token
  @token
end