[aerogear-dev] Possible error in oauth2Type method in AGAuthorizer.m

Corinne Krych corinnekrych at gmail.com
Tue Jun 10 06:40:44 EDT 2014


About to merge  PR https://github.com/aerogear/aerogear-ios/pull/130
which should fix it.
Thanks!

++
Corinne

On 10 Jun 2014, at 12:31, Yagyesh <yagyesh.agrawal at itpeoplecorp.com> wrote:

> Hello Corinne,
> 
> Thanks for the reply. 
> 
> I kind of figured out that still features are being added to Facebook OAuth.
> For instance, currently I could not do a revoke/deauthorize. Though I was
> able to achieve it locally at my end by overriding revokeAccessSuccess in
> AGRestOAuth2FacebookModule with something like this:
> 
> -(void) revokeAccessSuccess:(void (^)(id object))success
>                    failure:(void (^)(NSError *error))failure {
>    NSDictionary* paramDict = @{@"access_token":self.session.accessToken};
>    [_restClient DELETE:self.revokeTokenEndpoint parameters:paramDict
> success:^(NSURLSessionDataTask *task, id responseObject) {
>        [self.session saveAccessToken:nil refreshToken:nil expiration:nil];
>        if (success) {
>            success(nil);
>        }
>    } failure:^(NSURLSessionDataTask *task, NSError *error) {
>        if (failure) {
>            failure(error);
>        }
>    }];
> }
> 
> Revoke end point looks like this:
> "https://graph.facebook.com/me/permissions"
> 
> 
> I'm hoping with the 1.6 release even the revoke feature would be available
> for Facebook OAuth.
> 
> Thanks,
> Yagyesh
> 
> 
> 
> --
> View this message in context: http://aerogear-dev.1069024.n5.nabble.com/Re-aerogear-dev-Possible-error-in-oauth2Type-method-in-AGAuthorizer-m-tp8121p8131.html
> Sent from the aerogear-dev mailing list archive at Nabble.com.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev




More information about the aerogear-dev mailing list