Redirect Event
Fired when a redirection is received from the server.
Syntax
ANSI (Cross Platform) virtual int FireRedirect(OAuthRedirectEventParams *e);
typedef struct {
const char *Location;
int Accept; int reserved; } OAuthRedirectEventParams; Unicode (Windows) virtual INT FireRedirect(OAuthRedirectEventParams *e);
typedef struct {
LPCWSTR Location;
BOOL Accept; INT reserved; } OAuthRedirectEventParams;
- (void)onRedirect:(NSString*)location :(int*)accept;
#define EID_OAUTH_REDIRECT 9 virtual INT CLOUDMAIL_CALL FireRedirect(LPSTR &lpszLocation, BOOL &bAccept);
Remarks
This event is where the client can decide whether to continue with the redirection process or not. The Accept parameter is always true by default, but if you do not want to follow the redirection, Accept may be set to false, in which case the class fails with an error. Location is the location to which the client is being redirected. Further control over redirection is provided in the FollowRedirects property.