oauth - Require authentication or certificate to view Heroku app -
i have api deployed heroku. open see. want known android phones able modify , access api.
i don't want user have login every time use app.
can add sort of certificate phone verify credible?
is oauth best approach this?
is there better way user doesn't have login every time?
this broad question (and hence there several approaches). without knowing language/framework using it's hard give specific advice, but:
your server can issue cookie or token client can store locally duration. these tokens should include timestamp , authenticated (use library hmac authentication) prevent clients modifying tokens.
clients should present token or cookie on each request server via http header or standard
cookie
header.you need login system support initial issue of token/cookie.
clients oauth against server (complex) or against external service (github/facebook/google/twitter), still need way track state on client (hence token/cookie).
cookie support should included standard android http client, , server side frameworks have support (or library for) authenticated cookies.
Comments
Post a Comment