The API access is associated to users? You could also just use regular
requests over HTTPS using HTTP Basic Auth. Then you have the API
service call over to the front end to verify that it's a valid login.
Depending on how much your API is called you may want to have some
caching of the auth info.
At this point when designing an external facing API, I wouldn't use
the HMAC approach. I think using OAuth 2.0 is a better option since it
was redesigned to be more simple and take advantage of the security
stuff already built into HTTP.
Hope that helps,
Paul
> --
> You received this message because you are subscribed to the Google Groups "Service Oriented Design With Ruby" group.
> To post to this group, send email to service-oriented...@googlegroups.com.
> To unsubscribe from this group, send email to service-oriented-desig...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/service-oriented-design-with-ruby?hl=en.
>
This would provide the auth needed to run the frontend ontop of the public api, while also using the same credentials to allow API access. The only downside I see is that I have to keep duplicate copies of the token and key in user models in both db's, but keeping the API and the frontend separate is important to me (thanks to your book!) so I will have to make do. Was this approach more or less what you were talking about in the last paragraph of your reply?