FROptions

@objc
public class FROptions : NSObject, Codable

FROptions represents a configuration object for the SDK. It can be used for passing configuration options in the FRAuth.start() method.

Init

  • Initializes the FROptions object

    Declaration

    Swift

    public init(url: String,
                realm: String,
                enableCookie: Bool = true,
                cookieName: String? = nil,
                timeout: String = "60",
                authenticateEndpoint: String? = nil,
                authorizeEndpoint: String? = nil,
                tokenEndpoint: String? = nil,
                revokeEndpoint: String? = nil,
                userinfoEndpoint: String? = nil,
                sessionEndpoint: String? = nil,
                endSessionEndpoint: String? = nil,
                authServiceName: String = "Login",
                registrationServiceName: String = "Registration",
                oauthThreshold: String? = nil,
                oauthClientId: String? = nil,
                oauthRedirectUri: String? = nil,
                oauthScope: String? = nil,
                keychainAccessGroup: String? = nil,
                sslPinningPublicKeyHashes: [String]? = nil)

    Parameters

    url

    The AM URL

    realm

    The AM realm used for authentication

    enableCookie

    Boolean value to enable cookie usage

    timeout

    Timeout value in String format

    authenticateEndpoint

    AM /authenticate endpoint. Optionaly used for custom endpoints.

    authorizeEndpoint

    AM /authorize endpoint. Optionaly used for custom endpoints.

    tokenEndpoint

    AM /token endpoint. Optionaly used for custom endpoints.

    revokeEndpoint

    AM /revoke endpoint. Optionaly used for custom endpoints.

    userinfoEndpoint

    AM /userinfo endpoint. Optionaly used for custom endpoints.

    sessionEndpoint

    AM /session endpoint. Optionaly used for custom endpoints.

    endSessionEndpoint

    AM /endSession endpoint. Optionaly used for custom endpoints.

    authServiceName

    AM Tree/Journey used for authentication. Default tree to be used with FRUser.login

    registrationServiceName

    AM Tree/Journey used for registration. Default tree to be used with FRUser.register

    oauthThreshold

    OAuth Client timeout threshold

    oauthClientId

    OAuth Client name

    oauthRedirectUri

    OAuth Client redirectURI

    oauthScope

    OAuth Client scopes

    keychainAccessGroup

    Keychain access group for shared keychain

    sslPinningPublicKeyHashes

    SSL Pinning hashes

  • Initializes the FROptions object

    Declaration

    Swift

    public init(config: [String : Any])

    Parameters

    config

    Configuration dictionary [String: Any], providing properties either from a Serialized FROption object or a configuration plist

Public