Android facebook sdk with manual gatekeeper or inventor

I have a more structured question about constructing a connection between application (android) and server (rails-api gem) using json. It has to use facebook as authentication and then handle the connection flow through the token.

The planned solution looks like this:

  • I am planning to use facebook sdk (client side) to get facebook access token.
    a) Should I use the client side? I am considering this because the request will not be fulfilled by my server. But is the access token trustworthy?

  • After that, I send the access token to my server and validate it using the facebook graph

  • If the token is correct, I create a new user with information from facebook graph

  • Next, I use a gatekeeper to create an oauth provider. The client receives an oauth2 access token which it uses to communicate with the server ...
    a) Should I use a different gem for authentication? Or should I use the facebook access token as my normal authentication token?
    b) I'm not sure if I should use a gatekeeper or invent. Are there enough pre-markers? I read somewhere that u should use a gatekeeper for apis and develop regular websites.
    c) I am not getting hidden grant stuff from oauth2. Should I count it here?

Thanks for the help:)

+3
android ruby-on-rails facebook devise doorkeeper


source to share


No one has answered this question yet

Check out similar questions:

1116
Android SDK installation not finding JDK
390
Design for Facebook authentication in an iOS app that also accesses a secure web service
65
Rails 3 with Devise: how to allow someone to log in using their Facebook account?
13
How to use Devise and Doorkeeper gems?
12
API and Application Authentication using Devise Token, Doorkeeper and OAuth2
five
Gatekeeper authentication after facebook authentication
five
How do I authenticate to Doorkeeper with Facebook?
3
Oauth2 provider (Doorkeeper?) Is an Oauth2 user (Devise + OmniAuth) to login
1
API only Ruby on Rails 5, implementing OAuth2 (preferably with developer and gatekeeper help)
0
Come up with Doorkeeper oauth2 API pagination



All Articles
Loading...
X
Show
Funny
Dev
Pics