From 517d4fae1158159ebeea9e0ee231751a26a5ed79 Mon Sep 17 00:00:00 2001 From: Parker Atkins Date: Mon, 11 Dec 2023 13:52:10 -0800 Subject: [PATCH] BCSC Authentication * WIP debug BCSC openID connect flow * BCSC authentication * Await all oidcStore calls --- .../appsettings.Development.json | 2 +- .../src/App.vue | 37 +++++++++-- .../src/api/client.ts | 5 +- .../src/components/pages/Home.vue | 27 +++++--- .../src/components/pages/Login.vue | 16 ++++- .../src/components/pages/LogoutCallback.vue | 13 ++-- .../src/components/pages/SigninCallback.vue | 11 ++-- .../src/components/pages/SilentCallback.vue | 10 ++- .../src/main.ts | 1 + .../src/oidc-config.ts | 2 +- .../src/store/config.ts | 14 ++++- .../src/store/oidc.ts | 49 +++++++++++++++ .../src/store/user.ts | 62 +++++-------------- .../src/types/authority.d.ts | 2 + 14 files changed, 170 insertions(+), 81 deletions(-) create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/oidc.ts create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/authority.d.ts diff --git a/src/ECER.Clients.RegistryPortal/ECER.Clients.RegistryPortal.Server/appsettings.Development.json b/src/ECER.Clients.RegistryPortal/ECER.Clients.RegistryPortal.Server/appsettings.Development.json index 23d32fb40..848fac59e 100644 --- a/src/ECER.Clients.RegistryPortal/ECER.Clients.RegistryPortal.Server/appsettings.Development.json +++ b/src/ECER.Clients.RegistryPortal/ECER.Clients.RegistryPortal.Server/appsettings.Development.json @@ -6,6 +6,6 @@ } }, "cors": { - "allowedOrigins": "https://dev.loginproxy.gov.bc.ca/" + "allowedOrigins": "https://dev.loginproxy.gov.bc.ca/;https://idtest.gov.bc.ca/" } } diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/App.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/App.vue index ddc47190a..76a321c70 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/App.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/App.vue @@ -17,19 +17,48 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/LogoutCallback.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/LogoutCallback.vue index d3bd5d5e3..efdc934e4 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/LogoutCallback.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/LogoutCallback.vue @@ -1,22 +1,25 @@