MSALRedirectUri

Objective-C

@interface MSALRedirectUri : NSObject <NSCopying>

Swift

class MSALRedirectUri : NSObject, NSCopying

MSALRedirectUri is a representation of an OAuth redirect_uri parameter. A redirect URI, or reply URL, is the location that the authorization server will send the user to once the app has been successfully authorized, and granted an authorization code or access token.

Getting a redirect_uri parameter

  • url

    Redirect URI that will be used for network requests

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSURL *_Nonnull url;

    Swift

    var url: URL { get }

Checking redirect uri capabilities

  • Indicates if redirect URI can be used to talk to the Microsoft Authenticator application (broker). Broker redirect URIs need to follow particular format, e.g. msauth.your.app.bundleId://auth

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL brokerCapable;

    Swift

    var brokerCapable: Bool { get }