0

I have a situation where iPhone client Signs In with Google/Facebook

                   step 1
iPhone Client   --------——> Google/Facebook

Once Authenticated, client needs to get data from my REST APIs

                   step 1
iPhone Client   --------——> Google/Facebook
      |
      | step 2
      |
      V
  GET /transactions

Question

  1. Since server is not aware if client is authenticated(Ideally client is authenticated), what are some ways I can secure my REST APIs to have confidence that it is reasonably secured against malicious attacks?

  2. Also, I do not want to maintain user/passwords on server

daydreamer
  • 80,741
  • 175
  • 429
  • 691

2 Answers2

0

You need to look into OAuth2, which is created to authorise user and allow access to secured resources. Here are some useful links for the same:

RFC:

https://www.rfc-editor.org/rfc/rfc6749

One link that can lead you wherever you want to:

http://oauth.net/2/

Community
  • 1
  • 1
Juned Ahsan
  • 66,028
  • 11
  • 91
  • 129
0

You can generate a key for each client in the response and when the client access (provide key in the request) the server again, compare if the key is a valid key in your key pool.

sendon1982
  • 8,572
  • 53
  • 40