3

I am building a mobile app in which the users need to be authenticated via TrueVault which is a HIPAA compliant data store. TrueVault offers a REST API and generate an access token post basic authentication. They have endpoints to check token validity etc too.

We need to do 2 things:

1) Authenticate all users via TrueVault and store the auto generated TrueVault id in Parse to facilitate data mapping.

2) Setup an interceptor in Parse which verifies the access token with TrueVault before serving any protected resource.

What would be the simplest and most efficient way to implement the above? I have gone through the tutorial to add Third Party oAuth to the mobile apps, but TrueVault does not have oAuth in place yet and thus needs authorization requests via Basic Auth only. Also, would we need Cloud Code for the above or Custom Web Hooks?

Thanks Sameer

smaira
  • 307
  • 4
  • 19
  • My initial strategy would be to use Cloud Code with the NodeJS/Javascript wrappers available. Otherwise, making my own wrapper for Objective-C (or whichever client language) with the REST API from Truevault. – Luis B Dec 22 '15 at 06:07

1 Answers1

0

i would suggest you to use retrofit, Gson(or jackson) and rxjava(rxAndroid) in order to handle all api calls, i made a quick overview to the api documentation and this libraries should work for this problem.

links: https://github.com/square/retrofit

https://code.google.com/p/google-gson/

https://github.com/ReactiveX/RxAndroid

Cheers.

Baniares
  • 525
  • 1
  • 3
  • 9
  • Thanks for your suggestion Baniares, but I am looking for the best way to do this using the Parse service. – smaira Jan 05 '15 at 05:13