OAuth

OAuth manager base (iOS)

OAuth manager base

  • Platform-neutral manager for performing OAuth linking.

    Note

    OAuth flow webviews localize to environment locale.
    See more

    Declaration

    Objective-C

    @interface DBOAuthManager : NSObject <DBAccessTokenRefreshing> {
      NSString *_appKey;
      NSURL *_redirectURL;
      NSURL *_cancelURL;
      NSString *_host;
      NSMutableArray<NSURL *> *_urls;
      DBOAuthPKCESession *_authSession;
    }

    Swift

    class DBOAuthManager : NSObject, DBAccessTokenRefreshing

Access token class

  • A Dropbox OAuth2 access token.

    Stores a unique identifying key for storing in DBKeychain.

    See more

    Declaration

    Objective-C

    @interface DBAccessToken : NSObject <NSSecureCoding>

    Swift

    class DBAccessToken : NSObject, NSSecureCoding
  • Union result type from OAuth linking attempt.

    See more

    Declaration

    Objective-C

    @interface DBOAuthResult : NSObject

    Swift

    class DBOAuthResult : NSObject
  • Platform-specific (here, macOS) shared application.

    Renders OAuth flow and implements DBSharedApplication protocol.

    See more

    Declaration

    Objective-C

    @interface DBDesktopSharedApplication : NSObject <DBSharedApplication>

    Swift

    class DBDesktopSharedApplication : NSObject, DBSharedApplication
  • Protocol implemented by platform-specific builds of the Obj-C SDK for properly rendering the OAuth linking flow.

    See more

    Declaration

    Objective-C

    @protocol DBSharedApplication <NSObject>

    Swift

    protocol DBSharedApplication : NSObjectProtocol