Ios 如何在MSAL中获得更多的刷新令牌和ad范围
我想使用MSAL访问refressh令牌并在登录outlook中添加更多范围。需要请求脱机访问中的作用域和openidIos 如何在MSAL中获得更多的刷新令牌和ad范围,ios,objective-c,Ios,Objective C,我想使用MSAL访问refressh令牌并在登录outlook中添加更多范围。需要请求脱机访问中的作用域和openid - (void)signInUser:(void (^)(MSALUser *user, NSString *token, NSError *error))signInBlock { MSALPublicClientApplication *application = [self createClientApplication]; [application a
- (void)signInUser:(void (^)(MSALUser *user, NSString *token, NSError *error))signInBlock
{
MSALPublicClientApplication *application = [self createClientApplication];
[application acquireTokenForScopes:@[@"User.Read", @"Calendars.Read"]
completionBlock:^(MSALResult *result, NSError *error)
{
if (error)
{
signInBlock(nil, nil, error);
return;
}
[[NSUserDefaults standardUserDefaults] setValue:user.userIdentifier forKey:CURRENT_USER_KEY];
signInBlock(user, result.accessToken, error);
}];
}