SCSAuthenticationSettings
@interface SCSAuthenticationSettings : NSObjectAuthentication settings for the Snap-ins SDK. This class is necessary if you want to use any of the SDK features in authenticated mode. You’ll need to authenticate, for instance, if you want to access a knowledge base only accessible to logged in users, or if you want a user to view and manage their cases. Create an instance of this class using one of the provided initialization methods.
You can either authenticate explicitly using
-[SCServiceCloud setAuthenticationSettings:forServiceType:completion:]
or you can authenticate on-demand by implementing
-[SCServiceCloudDelegate serviceCloud:shouldAuthenticateServiceType:completion:].
To learn more about authentication, see Authentication.
- 
                  
                  Indicates whether these settings apply to a guest user who is not authenticated. DeclarationObjective-C @property (readonly, getter=isGuestUser, assign, nonatomic) BOOL guestUser;Swift var isGuestUser: Bool { get }
- 
                  
                  Indicates whether the specified authentication settings are valid. DeclarationObjective-C @property (readonly, getter=areSettingsValid, assign, nonatomic) BOOL settingsValid;Swift var areSettingsValid: Bool { get }
- 
                  
                  Indicates whether the settings are being verified. DeclarationObjective-C @property (readonly, getter=isVerifyingSettings, assign, nonatomic) BOOL verifyingSettings;Swift var isVerifyingSettings: Bool { get }
- 
                  
                  The name of the user for these authentication settings. DeclarationObjective-C @property (readonly, strong, nonatomic, nullable) NSString *username;Swift var username: String? { get }
- 
                  
                  Initializes this object as a guest user who is not authenticated. DeclarationObjective-C - (nonnull instancetype)initWithGuestCommunityUrl:(nonnull NSURL *)communityUrl;Swift init(guest communityUrl: URL)ParameterscommunityUrlThe URL of the community that accepts guest users. 
- 
                  
                  Initializes this object using a dictionary of authentication settings. Refer to SCSOAuth2JSONKeyfor information about which dictionary keys are required.See DeclarationObjective-C - (nullable instancetype) initWithOAuth2Dictionary: (nonnull NSDictionary<SCSOAuth2JSONKey, NSString *> *)dictionary clientId:(nonnull NSString *)clientId;Swift init?(oauth2 dictionary: [SCSOAuth2JSONKey : String], clientId: String)ParametersdictionaryThe dictionary of authentication settings. The keys are of type SCSOAuth2JSONKeyand the values are strings.clientIdThe unique client ID for these authentication settings. 
- 
                  
                  Initializes this object with a user account from the Salesforce Mobile SDK. This method automatically extracts all relevant information from the user account. DeclarationObjective-C - (nullable instancetype)initWithMobileSDKAccount: (nonnull SFUserAccount *)account;Swift init?(mobileSDK account: SFUserAccount)ParametersaccountThe mobile SDK user account from which to extract authentication settings. 
- 
                  
                  Undocumented DeclarationObjective-C - (instancetype)init NS_UNAVAILABLE;
- 
                  
                  Verifies that the authentication settings are valid. DeclarationObjective-C - (void)verifySettingsWithCompletion: (nonnull void (^)(BOOL, NSError *_Nullable __strong))completion;Swift func verifySettings(completion: @escaping (Bool, Error?) -> Void)ParameterscompletionCompletion block that is called after the verification process. 
- 
                  
                  Indicates whether the account has been registered for notifications. DeclarationObjective-C @property (readonly, getter=isRegisteredForPushNotifications, assign, nonatomic) BOOL registeredForPushNotifications;Swift var isRegisteredForPushNotifications: Bool { get }
- 
                  
                  Indicates if the account is able to register for push notifications. DeclarationObjective-C - (BOOL)supportsPushNotifications;Swift func supportsPushNotifications() -> BoolReturn ValueYESif this account can support registering for push notifications.
- 
                  
                  Registers the given device token for push notifications for the given account. If the current account is already registered, it automatically unregisters the previous token. DeclarationObjective-C - (void)registerForPushNotifications:(nonnull NSData *)deviceToken completion: (nullable void (^)( BOOL, NSError *_Nullable __strong))completion;Swift func register(forPushNotifications deviceToken: Data, completion: ((Bool, Error?) -> Void)? = nil)ParametersdeviceTokenDevice token supplied by the -[UIApplicationDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:]method.completionCompletion block that is called after the registration attempt. 
- 
                  
                  Unregisters the account from push notification support. DeclarationObjective-C - (void)unregisterForPushNotifications: (nullable void (^)(BOOL, NSError *_Nullable __strong))completion;Swift func unregister(forPushNotifications completion: ((Bool, Error?) -> Void)? = nil)ParameterscompletionCompletion block that is called after the attempt to unregister. 
 Install in Dash
            Install in Dash
           SCSAuthenticationSettings Class Reference
      SCSAuthenticationSettings Class Reference