Skip to content

Version 1.2.0

Latest
Compare
Choose a tag to compare
@william26 william26 released this 06 Aug 18:47
· 15 commits to master since this release
  • Added possibility to use the SDK with the server-side flow. The SDK automatically handles the state token retrieval and authentication endpoints, simplifying the whole front-end process:

All you have to do is to show the popup, specifying the state and auth URLs

[oauthioModal showWithProvider:@"facebook" options:options stateTokenUrl:@"http://your/state/url" authUrl:@"http://your/auth/url"];

And catch the response of the authentication with one of the following delegate methods:

- (void)didAuthenticateServerSide:(NSString *)body andResponse:(NSURLResponse *) response;
- (void)didFailAuthenticationServerSide:(NSString *)body andResponse:(NSURLResponse *)response andError:(NSError *)error;