Skip to content
This repository was archived by the owner on Jul 18, 2026. It is now read-only.

Commit 0259f89

Browse files
committed
adding credential links to sandbox builds.
1 parent 586aeca commit 0259f89

7 files changed

Lines changed: 21 additions & 5 deletions

File tree

frontend/src/app/pages/auth-signin/auth-signin.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AuthSigninComponent implements OnInit {
1818
submitted: boolean = false
1919
existingUser: User = new User()
2020
errorMsg: string = ""
21-
showExternalIdP: boolean = environment.is_cloud
21+
showExternalIdP: boolean = environment.environment_cloud
2222

2323
loading: boolean = false
2424

frontend/src/app/pages/medical-sources/medical-sources.component.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
Some sources may require frequent re-connection, as background refresh has not been implemented yet.
1515
<br/>
1616
If you have feedback regarding healthcare sources, please <a href="https://github.com/fastenhealth/docs/issues">file a ticket <i class="fab fa-github"></i></a>
17+
18+
<span *ngIf="environment_name == 'sandbox'">
19+
<br/>
20+
<br/>
21+
In <strong>Sandbox mode</strong> Fasten Health cannot access real patient information. You must use Sandbox credentials when authenticating to healthcare sources.
22+
<a href="https://github.com/fastenhealth/docs/blob/main/BETA.md#connecting-a-new-source">These credentials are available on Github</a>
23+
</span>
1724
</div>
1825

1926

frontend/src/app/pages/medical-sources/medical-sources.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {ToastService} from '../../services/toast.service';
1515
import {ToastNotification, ToastType} from '../../models/fasten/toast';
1616
import {SourceSyncMessage} from '../../models/queue/source-sync-message';
1717
import {UpsertSummary} from '../../../lib/models/fasten/upsert-summary';
18+
import {environment} from '../../../environments/environment';
1819
// If you dont import this angular will import the wrong "Location"
1920

2021
export const sourceConnectWindowTimeout = 24*5000 //wait 2 minutes (5 * 24 = 120)
@@ -42,6 +43,8 @@ export class MedicalSourcesComponent implements OnInit {
4243
private queueService: QueueService,
4344
private toastService: ToastService
4445
) { }
46+
47+
environment_name = environment.environment_name
4548
status: { [name: string]: string } = {}
4649

4750
metadataSources: {[name:string]: MetadataSource} = {}

frontend/src/environments/environment.cloud_sandbox.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const environment = {
22
production: true,
3-
is_cloud: true,
3+
environment_cloud: true,
4+
environment_name: "sandbox",
45
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/sandbox',
56

67
//used to specify the couchdb server that we're going to use (can be relative or absolute). Must not have trailing slash

frontend/src/environments/environment.prod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const environment = {
22
production: true,
3-
is_cloud: false,
3+
environment_cloud: false,
4+
environment_name: "prod",
45

56
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/v1',
67

frontend/src/environments/environment.sandbox.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
export const environment = {
66
production: true,
7-
is_cloud: false,
7+
environment_cloud: false,
8+
environment_name: "sandbox",
89

910
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/sandbox',
1011

frontend/src/environments/environment.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ export const environment = {
77
production: false,
88

99
// is the application running in the cloud? (enables 3rd party IdP's and token based couchdb authentication)
10-
is_cloud: false,
10+
environment_cloud: false,
11+
12+
// the environment name, `sandbox`, `prod`, `beta`
13+
environment_name: "sandbox",
1114

1215
//specify the lighthouse server that we're going to use to authenticate against all our source/providers. Must not have trailing slash
1316
lighthouse_api_endpoint_base: 'https://lighthouse.fastenhealth.com/sandbox',

0 commit comments

Comments
 (0)