Class: SDM::OktaMFAConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_token: nil, api_token_set: nil, auth_mode: nil, client_id: nil, multidevice_push_enabled: nil, organization_url: nil, private_key_id: nil, private_key_id_set: nil, private_key_pem: nil, private_key_pem_set: nil, user_lookup: nil) ⇒ OktaMFAConfig

Returns a new instance of OktaMFAConfig.



12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
# File 'lib/models/porcelain.rb', line 12998

def initialize(
  api_token: nil,
  api_token_set: nil,
  auth_mode: nil,
  client_id: nil,
  multidevice_push_enabled: nil,
  organization_url: nil,
  private_key_id: nil,
  private_key_id_set: nil,
  private_key_pem: nil,
  private_key_pem_set: nil,
  user_lookup: nil
)
  @api_token = api_token == nil ? "" : api_token
  @api_token_set = api_token_set == nil ? false : api_token_set
  @auth_mode = auth_mode == nil ? "" : auth_mode
  @client_id = client_id == nil ? "" : client_id
  @multidevice_push_enabled = multidevice_push_enabled == nil ? false : multidevice_push_enabled
  @organization_url = organization_url == nil ? "" : organization_url
  @private_key_id = private_key_id == nil ? "" : private_key_id
  @private_key_id_set = private_key_id_set == nil ? false : private_key_id_set
  @private_key_pem = private_key_pem == nil ? "" : private_key_pem
  @private_key_pem_set = private_key_pem_set == nil ? false : private_key_pem_set
  @user_lookup = user_lookup == nil ? "" : user_lookup
end

Instance Attribute Details

#api_tokenObject

The API token to authenticate with when auth_mode is api_token.



12974
12975
12976
# File 'lib/models/porcelain.rb', line 12974

def api_token
  @api_token
end

#api_token_setObject

Indicates if an API token is already stored.



12976
12977
12978
# File 'lib/models/porcelain.rb', line 12976

def api_token_set
  @api_token_set
end

#auth_modeObject

The Okta auth mode, one of the OktaAuthMode constants.



12978
12979
12980
# File 'lib/models/porcelain.rb', line 12978

def auth_mode
  @auth_mode
end

#client_idObject

The Okta client ID to authenticate with when auth_mode is client_credentials.



12980
12981
12982
# File 'lib/models/porcelain.rb', line 12980

def client_id
  @client_id
end

#multidevice_push_enabledObject

Indicates if multidevice push is enabled.



12982
12983
12984
# File 'lib/models/porcelain.rb', line 12982

def multidevice_push_enabled
  @multidevice_push_enabled
end

#organization_urlObject

The Okta organization URL.



12984
12985
12986
# File 'lib/models/porcelain.rb', line 12984

def organization_url
  @organization_url
end

#private_key_idObject

The key ID (kid) assigned by Okta to the registered public key.



12986
12987
12988
# File 'lib/models/porcelain.rb', line 12986

def private_key_id
  @private_key_id
end

#private_key_id_setObject

Indicates if a key ID is already stored or explicitly supplied. This allows callers to preserve the existing value when omitted or clear it by sending an empty string with private_key_id_set=true.



12990
12991
12992
# File 'lib/models/porcelain.rb', line 12990

def private_key_id_set
  @private_key_id_set
end

#private_key_pemObject

The PEM encoded private key to authenticate with when auth_mode is client_credentials.



12992
12993
12994
# File 'lib/models/porcelain.rb', line 12992

def private_key_pem
  @private_key_pem
end

#private_key_pem_setObject

Indicates if a PEM encoded private key is already stored.



12994
12995
12996
# File 'lib/models/porcelain.rb', line 12994

def private_key_pem_set
  @private_key_pem_set
end

#user_lookupObject

The Okta user lookup strategy, one of the OktaUserLookup constants.



12996
12997
12998
# File 'lib/models/porcelain.rb', line 12996

def user_lookup
  @user_lookup
end

Instance Method Details

#to_json(options = {}) ⇒ Object



13024
13025
13026
13027
13028
13029
13030
# File 'lib/models/porcelain.rb', line 13024

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end