Edifecs XEConnect Integration

This section shows you how to use Member Account service (MAS) in combination with the XEConnect Authorization Service to verify patient's identity. The Authorization Service is an OAuth 2.0-based authorization mechanism that can authorize client applications and limit their access to protected resources with security tokens.

During an authorization session, the Authorization Service has to verify the identity of a patient who is trying to obtain a security token. For this, the Authorization Service can delegate the verification of the patient's identity to MAS (OIDC Federation). The XEConnect Authorization Service supports OIDC Federation and is designed for seamless integration with MAS.

The following section walks you through a step-by-step scenario. The goal of the scenario is to obtain a security token from the XEConnect Authorization Service that uses the OIDC Federation and MAS to authenticate the end user's (patient's) identity.

Prerequisites

  • Smart Trading Cloud: You must have a Smart Trading Organization Account (administrator) to access Member Account service as administrator. Your Smart Trading Cloud must have a Member Account service subscription.

The scenario comprises the following major steps:

Configure XEConnect

Test the Scenario

After you have configured XEConnect, follow the steps below to test the configuration.

  1. Sign in to the Member Account service as administrator and import member roster with a test member (patient) record.

  2. Sign up as a test member whose record you have imported. For this, do the following:

    1. Open Member Account Service and click Sign Up.
    2. Select a health plan to proceed.
    3. Enter the information on the test patient that you provided in the roster and click Submit. The sample Member account is created, but for now, the account has a temporary password that you have to replace.
    4. Verify the email box you have used during the member account registration. Follow the Sign In link from the account registration email. On the first login, you will be prompted to replace the temporary password with a permanent one.
  3. Make a request to the XEConnect authorization endpoint. For this, open the following URL in your web browser (the host and port must correspond to your XEConnect Redirect URL):

    https://localhost:18088/oauth/authorize?client_id=test_client&response_type=code&redirect_uri=https://www.edifecs.com

    This directs you to the Health Plan login form (the Health Plan that you selected when you registered the test patient account in Member Account service):

  4. In the login form, enter the credentials of the test patient account you have registered. If the credentials are correct, you are directed to the XEConnect consent page:

  5. Click Allow to proceed with the authorization flow. This directs you to the Redirect URI defined in the OAuth client (in this scenario - https://www.edifecs.com/).
  6. Copy the access code (query parameter code) from the URL. This code is valid for a short period of time and is required to obtain a security token on the next step.
  7. Make the following request to the token endpoint:

    POST https://localhost:18088/oauth/token

    The request must have the following parameters (x-www-form-urlencoded):

    • grant_type=authorization_code
    • client_id=test_client
    • client_secret={clientSecret}
    • code={codeFromPreviousRequest}

    Where {clientSecret} is the client secret that you generated when you created the OAuth client (test_client) and {codeFromPreviousRequest} is the access code copied from the redirect URI on the previous step.

    As a response, XEConnect returns a JSON file with a security token, which indicates that XEConnect has successfully authenticated the mock patient through OIDC Federation and Member Account service.