Commit Graph

6 Commits

Author SHA1 Message Date
Jason Kulatunga 0a9eb88b1b
fixing module name (fasten-onprem vs fastenhealth-onprem) 2023-08-27 17:09:46 -07:00
Jason Kulatunga 07d01fc33b
fixing tests. 2023-07-20 22:08:31 -07:00
Jason Kulatunga f1b7e80e13
make sure that we print the error response body if we can.
Added an update source method.
After sync, if sourcecredential access token/refresh token has been updated make sure we store it int he database.
2023-07-20 21:43:37 -07:00
Jason Kulatunga a5b37159c1
- make sure that we can generate offline tokens for Epic providers (using dynamic client registration - https://fhir.epic.com/Documentation?docId=Oauth2&section=Standalone-Oauth2-OfflineAccess-0)
- when SourceCredential is sent to the CreateSource API, we'll check if dynamic client regirstion is enabled. If it is, we'll use this token to register a new client, store the client information, and geneate a new Access Token using the key pair associated with this newly registered client.
- added additional fields to SourceCredential table (registration_endpoint, dynamic_client_registration_mode, dynamic_client_jwks, dynamic_client_id)
- renamed RefreshTokens to SetTokens in SourceCredential model - to have consistent naming
- added IsDynamicClient and RefreshDynamicClientAccessToken methods to SourceCredential Model

fixes #178
2023-07-19 22:45:14 -07:00
Jason Kulatunga 12cfcaee41
make sure that the sourcecredential interface is a pointer reciever. 2023-07-14 19:52:02 -07:00
Jason Kulatunga e360369706
begin restoring Sqlite functionality. (#11) 2022-12-02 19:40:58 -08:00