Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Dockerfile path. #6

Merged
merged 15 commits into from
Oct 4, 2022
Merged
Prev Previous commit
Next Next commit
fix issue with localstorage of codeverifier
make sure we update the connected list when connection successful.
  • Loading branch information
AnalogJ committed Oct 4, 2022
commit 81151c0318bbacc13fa629b3c2377449d631bd50
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ export class MedicalSourcesComponent implements OnInit {
// window.location.reload();

console.log("source credential create response:", respData)
//remove item from available sources list, add to connected sources.
this.availableSourceList.splice(this.availableSourceList.indexOf(this.metadataSources[sourceType]), 1);
this.connectedSourceList.push({source: respData, metadata: this.metadataSources[sourceType]})

},
(err) => {
delete this.status[sourceType]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/services/lighthouse.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LighthouseService {
const codeChallenge = await Oauth.calculatePKCECodeChallenge(codeVerifier);
const codeChallengeMethod = lighthouseSource.code_challenge_methods_supported[0]; // 'S256'

localStorage.setItem(`${lighthouseSource}:code_verifier`, codeVerifier)
localStorage.setItem(`${sourceType}:code_verifier`, codeVerifier)
localStorage.setItem(`${sourceType}:code_challenge`, codeChallenge)
localStorage.setItem(`${sourceType}:code_challenge_method`, codeChallengeMethod)

Expand Down