MSALParameters

Objective-C

@interface MSALParameters : NSObject

/**
 The dispatch queue on which to dispatch the completion block with MSAL result.
 This configuration is optional.
 MSAL default behavior when this property is not set depends on the token acquisition type:
 1. For interactive token acquisition and signout requests, MSAL will call completion block on the main thread
 2. For silent token acquisition, MSAL doesn't guarantee any specific queue for the completion block dispatch if this property is not set.
    This means that by default MSAL will call its completion block on the queue that it receives server response on.
    For example, if MSAL receives a token refresh response on the background queue, it will dispatch the completion block on the same queue and developer needs to make sure to not update any UI elements in the MSAL completion block without checking for the main thread first.
 */
@property (nonatomic, nullable) dispatch_queue_t completionBlockQueue;

@end

Swift

class MSALParameters : NSObject

Undocumented

  • The dispatch queue on which to dispatch the completion block with MSAL result. This configuration is optional. MSAL default behavior when this property is not set depends on the token acquisition type:

    1. For interactive token acquisition and signout requests, MSAL will call completion block on the main thread
    2. For silent token acquisition, MSAL doesn’t guarantee any specific queue for the completion block dispatch if this property is not set. This means that by default MSAL will call its completion block on the queue that it receives server response on. For example, if MSAL receives a token refresh response on the background queue, it will dispatch the completion block on the same queue and developer needs to make sure to not update any UI elements in the MSAL completion block without checking for the main thread first.

    Declaration

    Objective-C

    @property (nonatomic, nullable) dispatch_queue_t completionBlockQueue;

    Swift

    var completionBlockQueue: dispatch_queue_t? { get set }