Class: StytchB2B::SCIM::Connection::RotateCompleteRequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/stytch/b2b_scim.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization: nil) ⇒ RotateCompleteRequestOptions

Returns a new instance of RotateCompleteRequestOptions.



86
87
88
89
90
# File 'lib/stytch/b2b_scim.rb', line 86

def initialize(
  authorization: nil
)
  @authorization = authorization
end

Instance Attribute Details

#authorizationObject

Optional authorization object. Pass in an active Stytch Member session token or session JWT and the request will be run using that member’s permissions.



84
85
86
# File 'lib/stytch/b2b_scim.rb', line 84

def authorization
  @authorization
end

Instance Method Details

#to_headersObject



92
93
94
95
96
# File 'lib/stytch/b2b_scim.rb', line 92

def to_headers
  headers = {}
  headers.merge!(@authorization.to_headers) if authorization
  headers
end