sina认证的scope参数


sina认证的scope参数, scope是OAuth2.0授权机制中authorize接口的一个参数,对于普通的web认证方式,可以直接在 authorize接口的添加一个参数,可以出现这种效果


sina认证的scope参数_第1张图片



具体添加的方式是:

- (void)startAuthorize
{
    NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:appKey, @"client_id",
                            @"code", @"response_type",
                            redirectURI, @"redirect_uri", 
                            @"mobile", @"display",@"follow_app_official_microblog,friendships_groups_read,friendships_groups_write,statuses_to_me_read",@"scope",nil];
    NSString *urlString = [WBRequest serializeURL:kWBAuthorizeURL
                                           params:params
                                       httpMethod:@"GET"];
    
    WBAuthorizeWebView *webView = [[WBAuthorizeWebView alloc] init];
    [webView setDelegate:self];
    [webView loadRequestWithURL:[NSURL URLWithString:urlString]];
    [webView show:YES];
    [webView release];
}


参考网站:http://open.weibo.com/wiki/Scope


但是sina的最新的SSO认证,怎么去实现这个scope,(我个人认为应该不能实现)。I  don’t know!

你可能感兴趣的:(sina认证的scope参数)