Skip to content

Commit

Permalink
DPC-1178 Added redirect for new password reset url (#25)
Browse files Browse the repository at this point in the history
* DPC-1178 added redirect for new password reset url

* DPC-1178 added javascript to manage the redirect

* DPC-1178 fixing gemfile.lock error

* DPC-1178 added layout to redirect page

* DPC-1178 added user confirmation redirect page
  • Loading branch information
PatKelsh authored Mar 9, 2021
1 parent af0c7e6 commit e335482
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Welcome to the Data at the Point of Care pilot API program! This documentation c
Welcome to the Data at the Point of Care pilot API program!

## Step One: Request Access
Any Fee-for-Service provider or Health IT vendor may [request access](https://dpc.cms.gov/users/sign_up) to the sandbox environment and obtain synthetic data by signing-up for an account in the DPC Portal. You will receive a confirmation email from CMS upon account creation.
Any Fee-for-Service provider or Health IT vendor may [request access](https://sandbox.dpc.cms.gov/users/sign_up) to the sandbox environment and obtain synthetic data by signing-up for an account in the DPC Portal. You will receive a confirmation email from CMS upon account creation.

Once your account has been assigned to an organization, you will be notified with a second email, which will include next steps and an invite to join our [Google Group](https://groups.google.com/g/dpc-api) community. At this time, you may log in to the DPC Portal at [https://dpc.cms.gov](https://dpc.cms.gov) to create your first client token and start your journey with the Data at the Point of Care pilot API!

Expand Down Expand Up @@ -42,7 +42,7 @@ Client tokens help monitor who is accessing the API through your account. A clie

Your first client token must be created through the DPC Portal. After successfully accessing the API, you may choose to add client tokens through the API or continue using the DPC Portal.

1. **Log in to your account in the [DPC Portal](https://dpc.cms.gov/users/sign_in)** and select <span class="button-ex">+ New Token</span>
1. **Log in to your account in the [DPC Portal](https://sandbox.dpc.cms.gov/users/sign_in)** and select <span class="button-ex">+ New Token</span>
2. **Add a Label:** Title your token with a recognizable name that includes the environment for which you are requesting access
3. Click "Create Token" to generate your client token

Expand Down
13 changes: 13 additions & 0 deletions common/userConfirmationRedirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: User Confirmation Redirect
permalink: /users/confirmation
id: user-confirmation-redirect
layout: default
---

<script>
const baseURL = 'https://sandbox.dpc.cms.gov/users/confirmation'
const params = new URLSearchParams(window.location.search);
const redirectURL = baseURL + '?' + params.toString()
window.location.replace(redirectURL)
</script>
13 changes: 13 additions & 0 deletions common/userPasswordEditRedirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: User Password Reset Redirect
permalink: /users/password/edit
id: user-password-redirect
layout: default
---

<script>
const baseURL = 'https://sandbox.dpc.cms.gov/users/password/edit'
const params = new URLSearchParams(window.location.search);
const redirectURL = baseURL + '?' + params.toString()
window.location.replace(redirectURL)
</script>

0 comments on commit e335482

Please sign in to comment.