Skip to content

Handling External Logins with An API #230

Description

@ingeniousgenius

This is not really an issue but rather a question. What is the best way to handle external logins when working with a api only application?

Particularly a mobile application where the OAuth2 access_tokens are generated on the client through a different OAuth Grant flow. An example would be the FacebookLoginSDK for iOS or Android. The user signs in natively (not through a web browser) and retrieves an access_token/refresh_token pair.

Is there a way to submit this token to the server and create a user account based on this, opposed to having to redirect the user to the Rails Application, then to the provider, then back to the rails application and deep linking back to the mobile app.

This is quite a common issue but I really cannot seem to find any solutions whatsoever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking a question about Sorcery

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions