Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OAuth] Link oauth provider flow #141

Closed
carmenlau opened this issue Nov 7, 2017 · 0 comments
Closed

[OAuth] Link oauth provider flow #141

carmenlau opened this issue Nov 7, 2017 · 0 comments
Assignees

Comments

@carmenlau
Copy link
Contributor

  • -[SKYContainer.auth linkOAuthProvider:(NSString*)providerID options:(NSDictionary*)options completion:(void(^)(NSError*, SKYUser*))]
    • Add a new auth provider to the user by going through the auth flow
    • providerID - A string that identify the login provider
    • options
      • scope
      • scheme - For redirect after authorization flow
    • This function returns a skygear user, and an access token of the new
      service, via delegate.
  • -[SKYContainer.auth linkOAuthProvider:(NSString*)providerID, accessToken:(NSString*)accessToken completion:(void(^)(NSError*, SKYUser*))]
    • accessToken - Client calls this API if it already has an access token,
      skygear will try to login directly instead of going through the OAuth
      flow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant