php - oAuth user authentication in internal rest API -
i building rest api service not public , used client access resources on server. there no authorization of different consumers consumer server.
i understand 3 legged oauth standard used public api's facebooks , think i'm correct in assuming after 2 legged authentication cannot find useful website describing it.
i need use oauth access resources and/or change them. should protected. unsure how doing within php. if user requests https://example.com/me/follow/123 post request user 123 followed if user logged.
i public resources accessed recognized client only. if access https://example.com/user/123 401 given if access https://example.com/user/123?client_id=890 result given. not stop users not logged in getting public resources stop users not using recognised client. more anythinging way me track clients using api in future.
1) how go logins , give users token sent every api request?
2) how protect api being used unrecognized clients?
i sorry if of terminology or ideas incorrect. understanding of rest , oauth still developing.
you have use grant types=client credentials check in oauth standard point 4.4 http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-4.4
Comments
Post a Comment