Class: LockstepSdk::ConnectorInfoModel

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/connector_info_model.rb

Overview

Represents all possible data required to set up an app enrollment for a connector. Only send required fields for the given connector.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ConnectorInfoModel

Initialize the ConnectorInfoModel using the provided prototype



25
26
27
28
29
30
# File 'lib/lockstep_sdk/models/connector_info_model.rb', line 25

def initialize(params = {})
    @auth_code = params.dig(:auth_code)
    @realm_id = params.dig(:realm_id)
    @redirect_uri = params.dig(:redirect_uri)
    @email = params.dig(:email)
end

Instance Attribute Details

#auth_codeString

Returns The authorization code returned from the first step of the OAuth2 flow oauth.net/2/grant-types/authorization-code/.

Returns:



33
34
35
# File 'lib/lockstep_sdk/models/connector_info_model.rb', line 33

def auth_code
  @auth_code
end

#emailString

Returns The email an email connection is being created for.

Returns:

  • (String)

    The email an email connection is being created for.



39
40
41
# File 'lib/lockstep_sdk/models/connector_info_model.rb', line 39

def email
  @email
end

#realm_idString

Returns The realm id of the account being granted permissions to access.

Returns:

  • (String)

    The realm id of the account being granted permissions to access



35
36
37
# File 'lib/lockstep_sdk/models/connector_info_model.rb', line 35

def realm_id
  @realm_id
end

#redirect_uriString

Returns The redirect uri used for step one of the OAuth2.0 flow.

Returns:

  • (String)

    The redirect uri used for step one of the OAuth2.0 flow.



37
38
39
# File 'lib/lockstep_sdk/models/connector_info_model.rb', line 37

def redirect_uri
  @redirect_uri
end