Class: IosAppAttest::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ios_app_attest/configuration.rb

Overview

Configuration class for IosAppAttest

This class holds all configuration parameters required for the iOS App Attest verification process. It includes the app identifier and encryption key for challenge nonce encryption/decryption.

Examples:

IosAppAttest.configure do |config|
  config.app_id = "TEAM_ID.BUNDLE_ID"
  config.encryption_key = ENV["IOS_APP_ATTEST_TOKEN"].byteslice(0, 32)
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIosAppAttest::Configuration

Initialize a new Configuration instance with default values

Creates a new configuration object with all attributes set to nil. These attributes must be set before using the configuration with validators.



26
27
28
29
# File 'lib/ios_app_attest/configuration.rb', line 26

def initialize
  @app_id = nil
  @encryption_key = nil
end

Instance Attribute Details

#app_idString

The Apple Team ID and Bundle ID in the format “TEAM_ID.BUNDLE_ID”



17
18
19
# File 'lib/ios_app_attest/configuration.rb', line 17

def app_id
  @app_id
end

#encryption_keyString

The encryption key used for challenge nonce encryption (32 bytes)



17
18
19
# File 'lib/ios_app_attest/configuration.rb', line 17

def encryption_key
  @encryption_key
end