Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in VKAuthorizeController.h
VKAuthorizeController.m

Overview

Controller for authorization through webview (if VK app not available)

Class Methods

buildAuthorizationUrl:clientId:scope:revoke:display:

Builds url for oauth authorization

+ (NSString *)buildAuthorizationUrl:(NSString *)redirectUri clientId:(NSString *)clientId scope:(NSString *)scope revoke:(BOOL)revoke display:(VKDisplayType)display

Parameters

redirectUri

uri for redirect

clientId

id of your application

scope

requested scope for application

revoke

If YES, user will see permissions list and allow to logout (if logged in already)

display

select display type

Return Value

Complete url-string for grant authorization

Declared In

VKAuthorizeController.h

presentForAuthorizeWithAppId:andPermissions:revokeAccess:displayType:

Causes UIWebView in standard UINavigationController be presented in SDK delegate

+ (void)presentForAuthorizeWithAppId:(NSString *)appId andPermissions:(NSArray *)permissions revokeAccess:(BOOL)revoke displayType:(VKDisplayType)displayType

Parameters

appId

Identifier of VK application

permissions

Permissions that user specified for application

revoke

If YES, user will see permissions list and allow to logout (if logged in already)

displayType

Defines view of authorization screen

Declared In

VKAuthorizeController.h

presentForValidation:

Causes UIWebView in standard UINavigationController be presented for user validation

+ (void)presentForValidation:(VKError *)validationError

Parameters

validationError

validation error returned by API

Declared In

VKAuthorizeController.h