MSALGlobalConfig

Objective-C

@interface MSALGlobalConfig : NSObject

Swift

class MSALGlobalConfig : NSObject

MSAL configuration interface responsible for globally applicable authentication properties.

Note

Configuration changes inside MSALGlobalConfig will apply to all instances of MSALPublicClientApplication

Configuration options

  • Network configuration, refer to MSALHTTPConfig for more details

    Declaration

    Objective-C

    @property (class, readonly) MSALHTTPConfig *_Nonnull httpConfig;

    Swift

    class var httpConfig: MSALHTTPConfig { get }
  • Telemetry configurations, refer to MSALTelemetryConfig for more details

    Declaration

    Objective-C

    @property (class, readonly) MSALTelemetryConfig *_Nonnull telemetryConfig;

    Swift

    class var telemetryConfig: MSALTelemetryConfig { get }
  • Logger configurations, refer to MSALLoggerConfig for more details

    Declaration

    Objective-C

    @property (class, readonly) MSALLoggerConfig *_Nonnull loggerConfig;

    Swift

    class var loggerConfig: MSALLoggerConfig { get }
  • Deprecated

    Use webviewParameters to configure web view type in MSALInteractiveTokenParameters instead (create parameters object and pass it to MSALPublicClientApplication -acquireTokenWithParameters:completionBlock:)

    The webview selection to be used for authentication. By default, it is going to use the following to authenticate. - iOS: ASWebAuthenticationSession for iOS 12+, SFAuthenticationSession for iOS11, SFSafariViewController on iOS 10. - macOS: WKWebView

    Declaration

    Objective-C

    @property (class) MSALWebviewType defaultWebviewType;

    Swift

    class var defaultWebviewType: Int32 { get set }
  • Setting to define MSAL behavior when Microsoft Authenticator application is installed. By default, MSAL will always try to use Microsoft Authenticator application when getting a token interactively. Set this property to MSALBrokeredAvailabilityNone to disable this behavior

    Declaration

    Objective-C

    @property (class) MSALBrokeredAvailability brokerAvailability;

    Swift

    class var brokerAvailability: Int32 { get set }

Unavailable initializers

  • Unavailable

    Use class properties instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use class properties instead.

    Declaration

    Objective-C

    + (nonnull instancetype)new;