Class: Couchbase::JWTAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/authenticator.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/authenticator.rb

Overview

Authenticator using a JSON Web Token (JWT)

Stability:

  • Uncommitted: This API may change in the future.

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

Stability:

  • Uncommitted: This API may change in the future.



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

def initialize(token)
  @token = token
end

Instance Attribute Details

#tokenObject

Stability:

  • Uncommitted: This API may change in the future.



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

def token
  @token
end