Validic
  • Solutions
    • Inform: Data Connectivity Platform
    • Impact: Remote Monitoring Platform
    • Logistics & Support
    • Mobile Solutions & HealthBridge
  • Industries
    • Hospitals & Health Systems
    • Healthcare IT Companies
    • Wellness Companies
    • Pharmaceutical Companies & CROs
    • Payers & Insurers
    • Device Manufacturers & App Developers
  • Ecosystem
  • Resources
    • Blog
    • Learning Center
  • Contact
Select Page

Mobile Apps

Mar 20, 2015

Mobile Apps

Integrating with Validic Connect as a mobile app is the same as for a web app with the exception of authorization. Authorization for a mobile app is a Pincode based process rather than a signature based one.

Authorization User Experience for Mobile Apps

The user experience for authorization with a mobile app includes the following steps:

  1. A third-party application presents a user the Validic Marketplace of apps with the option to connect them to their application.
  2. Upon clicking “Connect”, the user is presented a PIN code and told to input that PIN within the mobile app.
  3. The user navigates to your app’s Input Pin Page and enters the PIN
  4. A correct submission will confirm the user’s connection between their account and the “consumer’s” application.
  5. An incorrect submission asks the user to resubmit the correct PIN or generate a new PIN in the “consumer” app.

Handling Authorization for New Users

The Input Pin Page should be a page within your mobile app only available to logged in users. Upon input of the Pincode your mobile app will only need to make a single POST to Validic to confirm the authorization and receive Validic credentials on behalf of that user:

POST https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/authorization/new_user
-H 'Content-Type: application/json'
 {
   "user": {
     "uid": "{YOUR_USER_ID}"
   },
 "pin": "{PINCODE}",
 "access_token": "{ORGANIZATION_ACCESS_TOKEN}"
 }

Note: The UID must be unique to that user in your system and cannot be an email. That response will look like:

 201
 {
   "code": 201,
   "message": "Authorized",
   "user": {
     "_id": "{USER_ID}",
     "uid": "{YOUR_USER_UID}",
     "access_token": "{USER_ACCESS_TOKEN}"
   },
   "application": "{THIRD_PARTY_APPLICATION_NAME}"
 }

For those familiar with Validic’s User Provisioning process, this request has provisioned a user in Validic with the uid you send in the POST request.

Similar to web based applications, you should manage the “consumer” application that are synced to your user. All other practices related to managing user generated data remain the same as with a web app (see previous sections for more).

Handling an Invalid Pincode Response

When an Authorization request sent to Validic fails, a 401 error response will be returned by Validic. In this case, you must handle the response in your application properly for the user to know that the provided pincode was invalid or expired. Typically, this is done by providing an error notice in your application’s Input Pin Page. Pincodes are active for 30 minutes once generated by the user. In case of an expired pincode, you must inform your user to return to the App Marketplace to regenerate a new pincode. Below is what a typical authorization with 401 response will look like:

POST https://api.validic.com/v1/organizations/ORGANIZATION_ID/authorization
-H 'Content-Type: application/json'
{
  "access_token": "{USER_ACCESS_TOKEN}",
  "pin": "{PINCODE}"
}

That response will look like this:

{
  "code": 401,
  "message": "expired pin or bad request"
}

View More >

Recent Posts

  • Why a digital health leader acquired a warehouse
  • Meet Gabe Maeck, LCSW, Senior Client Success Executive
  • Converting Patient Insight into Action: Exploring New Connections in Patient Data
  • Remote Patient Monitoring Has Failed — Now What?
  • Reducing Long Wait Times for Provider Care

Archives

  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • October 2021
  • July 2021
  • June 2021
  • April 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • June 2016
  • January 2016
  • September 2015
  • August 2015
  • July 2015

Categories

News
Events
Awards

About

  • Blog
  • Company
  • How It Works
  • Careers

Developers

  • Inform Platform Documentation
  • Legacy Platform Documentation
  • Connect API Documentation
  • Mobile Documentation

Legal

  • Data Security Policy
  • Service Level Agreement
  • Support Policy
  • Privacy Policy
  • Terms and Conditions

Contact Us

  • Request to Become a Client
Validic

Validic Inc. is a digital health and personalized care company devoted to our mission of improving the quality of human life by making personal data actionable. With the world’s largest health IoT platform and EHR-embedded remote care application, we help healthcare organizations give every person tailored interventions and personalized care, improving healthcare efficiency and delivery, and empowering people to play an active role in their health and well-being.

Validic Twitter Validic LinkedIn

hello@validic.com
1-800-495-7934

701 W Main St, Suite 620
Durham, NC 27701

This website uses cookies to improve your user experience. By using our website, you consent to all cookies in accordance with our Privacy Policy.AcceptPrivacy policy