-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbb9595
commit 3a3dab9
Showing
7 changed files
with
153 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
import '../../common/module.dart'; | ||
|
||
class Lab { | ||
Lab(this.name, this.authUrl, this.endpoint); | ||
Lab({ | ||
required this.name, | ||
required this.authUrl, | ||
required this.tokenUrl, | ||
required this.endpoint, | ||
}); | ||
|
||
String name; | ||
String authUrl; | ||
Uri authUrl; | ||
Uri tokenUrl; | ||
String endpoint; | ||
} | ||
|
||
final labs = [ | ||
Lab( | ||
'Illumina Solutions Center Berlin', | ||
'$keycloakUrl/auth/realms/pharme', | ||
'$labServerUrl/star-alleles', | ||
name: 'Illumina Solutions Center Berlin', | ||
authUrl: keycloakUrl.replace( | ||
path: '/auth/realms/pharme/protocol/openid-connect/auth', | ||
), | ||
tokenUrl: keycloakUrl.replace( | ||
path: '/auth/realms/pharme/protocol/openid-connect/token', | ||
), | ||
endpoint: '$labServerUrl/star-alleles', | ||
), | ||
Lab( | ||
'Mount Sinai Hospital (NYC)', | ||
'$keycloakUrl/auth/realms/pharme', | ||
'$labServerUrl/star-alleles', | ||
name: 'Mount Sinai Hospital (NYC)', | ||
authUrl: keycloakUrl.replace( | ||
path: '/auth/realms/pharme/protocol/openid-connect/auth', | ||
), | ||
tokenUrl: keycloakUrl.replace( | ||
path: '/auth/realms/pharme/protocol/openid-connect/token', | ||
), | ||
endpoint: '$labServerUrl/star-alleles', | ||
) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.