TokenScope
public enum TokenScope : BoxEnum
extension TokenScope: Hashable
Specifies permissions that define a token scope
-
Allow user to edit annotations (delete).
Declaration
Swift
case annotationEdit
-
Allows user to view all users’ annotations.
Declaration
Swift
case annotationViewAll
-
Allows user to view their own annotations only.
Declaration
Swift
case annotationViewSelf
-
Allows access to content in the folder tree based on user/file/token permissions.
Declaration
Swift
case baseExplorer
-
Allows access to content in the folder tree based on user/file/token permissions.
Declaration
Swift
case basePicker
-
Allows the user to preview the file, nothing else.
Declaration
Swift
case basePreview
-
Allows the user to get basic file info needed for the sidebar.
Declaration
Swift
case baseSidebar
-
Allows upload into the folder specific under “resource” of the Token Exchange request.
Declaration
Swift
case baseUpload
-
Allows file/folders to be deleted.
Declaration
Swift
case itemDelete
-
Allows files/folders contents to be downloaded.
Declaration
Swift
case itemDownload
-
Automatically enables preview of the file, upon user click (requires Preview UI Element to be referenced).
Declaration
Swift
case itemPreview
-
Allows files/folders to be renamed.
Declaration
Swift
case itemRename
-
Allows sharing of resource specified under “resource” of the Token Exchange request.
Declaration
Swift
case itemShare
-
Allows upload in the content picker.
Declaration
Swift
case itemUpload
-
Custom permission that was not yet implemented in this version of SDK.
Declaration
Swift
case customValue(String)
-
Initializer.
Declaration
Swift
public init(_ value: String)
Parameters
value
String representation of token scope
-
String representation of token scope
Declaration
Swift
public var description: String { get }