sina认证的scope参数


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





具体添加的方式是:

- (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!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值