Inherits from NSObject
Conforms to NSURLConnectionDataDelegate
NSURLConnectionDelegate
Declared in AlfrescoOAuthHelper.h

Overview

The AlfrescoOAuthHelper handles OAuth authentication processes.

Author: Gavin Cornwell (Alfresco), Tijs Rademakers (Alfresco), Peter Schmidt (Alfresco)

Tasks

Instance Methods

initWithParameters:

this is an internal initialiser used for testing purposes only. Do not use for production services @param parameters

- (id)initWithParameters:(NSDictionary *)parameters

Discussion

this is an internal initialiser used for testing purposes only. Do not use for production services @param parameters

Declared In

AlfrescoOAuthHelper.h

refreshAccessToken:completionBlock:

  • the AlfrescoOAuthData, used for refreshing the access token. For that the AlfrescoOAuthData set needs to contain the api key, secret key, refresh token, and current access token @param completionBlock
- (AlfrescoRequest *)refreshAccessToken:(AlfrescoOAuthData *)oauthData completionBlock:(AlfrescoOAuthCompletionBlock)completionBlock

Parameters

oauthData
  • the AlfrescoOAuthData, used for refreshing the access token. For that the AlfrescoOAuthData set needs to contain the api key, secret key, refresh token, and current access token @param completionBlock

Declared In

AlfrescoOAuthHelper.h

retrieveOAuthDataForAuthorizationCode:oauthData:completionBlock:

the authorization code retrieved from the Cloud server at first login

- (AlfrescoRequest *)retrieveOAuthDataForAuthorizationCode:(NSString *)authorizationCode oauthData:(AlfrescoOAuthData *)oauthData completionBlock:(AlfrescoOAuthCompletionBlock)completionBlock

Parameters

authorizationCode

the authorization code retrieved from the Cloud server at first login

oauthData
  • the AlfrescoOAuthData. This object must have the api key, secret key and redirect URI set @param completionBlock

Declared In

AlfrescoOAuthHelper.h