MSALB2CAuthority

Objective-C

@interface MSALB2CAuthority : MSALAuthority

Swift

class MSALB2CAuthority : MSALAuthority

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

Note

By default, the B2C authority url should be in the following format, where custom_port is optional: https://b2c_host:custom_port/tfp/b2c_tenant/b2c_policy. However, MSAL also supports other arbitrary B2C authority formats. See https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-protocols

Constructing a B2C authority

  • Initializes MSALB2CAuthority with NSURL.

    Declaration

    Objective-C

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

    Swift

    init(url: URL) throws

    Parameters

    url

    Authority indicating a B2C 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.