MSALCIAMAuthority

Objective-C

@interface MSALCIAMAuthority : MSALAuthority

Swift

class MSALCIAMAuthority : MSALAuthority

CIAM endpoint that MSAL will use to get a token and perform CIAM policies.

Note

By default, the CIAM authority url should be in the following format https://tenant.ciamlogin.com. However, MSAL also supports other arbitrary CIAM such as: https://tenant.ciamlogin.com/GUID and https://tenant.ciamlogin.com/aDomain, where GUID is tenantID and aDomain and domainName

Constructing a CIAM authority

  • Initializes MSALCIAMAuthority with NSURL.

    Declaration

    Objective-C

    - (nullable instancetype)initWithURL:(nonnull NSURL *)url
                                   error:(NSError *_Nullable *_Nullable)error;

    Swift

    convenience init(url: URL) throws

    Parameters

    url

    Authority indicating a CIAM endpoint that MSAL can use to obtain tokens.

    error

    The error that occurred creating the authority object, if any, if you’re not interested in the specific error pass in nil. //

  • Undocumented

    Declaration

    Objective-C

    - (nullable instancetype)initWithURL:(nonnull NSURL *)url
                          validateFormat:(BOOL)validateFormat
                                   error:(NSError * _Nullable __autoreleasing * _Nullable)error NS_DESIGNATED_INITIALIZER;

    Swift

    init(url: URL, validateFormat: Bool) throws