@sbc-connect/nuxt-auth 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-auth
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131](https://github.com/bcgov/connect-nuxt/pull/131) [`f649e93`](https://github.com/bcgov/connect-nuxt/commit/f649e930fcb08a4e363e2b6632cb337466f21150) Thanks [@kialj876](https://github.com/kialj876)! - Update useConnectAccountFlowRedirect to add accountid to the query and remove modal in idp-enforcement middleware
|
|
8
|
+
|
|
9
|
+
## 0.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`93c5650`](https://github.com/bcgov/connect-nuxt/commit/93c5650be9a6b48e51d876d522f168d885d006c4)]:
|
|
14
|
+
- @sbc-connect/nuxt-forms@0.5.0
|
|
15
|
+
|
|
3
16
|
## 0.6.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -9,8 +9,9 @@ export const useConnectAccountFlowRedirect = () => {
|
|
|
9
9
|
const externalRedirectUrl = route.query.return as string | undefined
|
|
10
10
|
const internalRedirectUrl = ac.redirect
|
|
11
11
|
const query = { ...route.query }
|
|
12
|
+
query.accountid = String(currentAccount.id)
|
|
12
13
|
|
|
13
|
-
const bypassAccounts = userAccounts.length === 1 && !query.
|
|
14
|
+
const bypassAccounts = userAccounts.length === 1 && !query.token
|
|
14
15
|
const isNonStaffAccount = ![AccountType.STAFF, AccountType.SBC_STAFF].includes(currentAccount.accountType)
|
|
15
16
|
const createOrSelectAccount = manageAccount && isNonStaffAccount && !bypassAccounts
|
|
16
17
|
|
|
@@ -2,7 +2,7 @@ import { useConnectAuth } from '#auth/app/composables/useConnectAuth'
|
|
|
2
2
|
import { withQuery } from 'ufo'
|
|
3
3
|
import type { ConnectIdpHint } from '#imports'
|
|
4
4
|
import { useAppConfig } from '#imports'
|
|
5
|
-
import { ConnectModalInvalidIdp } from '#components'
|
|
5
|
+
// import { ConnectModalInvalidIdp } from '#components'
|
|
6
6
|
|
|
7
7
|
export default defineNuxtRouteMiddleware(async (to) => {
|
|
8
8
|
const localePath = useLocalePath()
|
|
@@ -15,13 +15,14 @@ export default defineNuxtRouteMiddleware(async (to) => {
|
|
|
15
15
|
const allowedIdps = connectConfig?.login?.idps
|
|
16
16
|
|
|
17
17
|
// Idp overlay
|
|
18
|
-
const overlay = useOverlay()
|
|
19
|
-
const modal = overlay.create(ConnectModalInvalidIdp)
|
|
18
|
+
// const overlay = useOverlay()
|
|
19
|
+
// const modal = overlay.create(ConnectModalInvalidIdp)
|
|
20
20
|
|
|
21
21
|
/** Show Invalid IDP Modal and Logout on modal close */
|
|
22
22
|
async function showInvalidIdpModal() {
|
|
23
23
|
// Prompt user with invalid IDP modal
|
|
24
|
-
|
|
24
|
+
// FUTURE: Fix this in #32610. Currently it doesn't work - loading overlay covers it.
|
|
25
|
+
// await modal.open({ currentIdp: authUser.value?.loginSource })
|
|
25
26
|
|
|
26
27
|
// Logout and Preserve any query param
|
|
27
28
|
const pathWithQuery = withQuery(localePath('/auth/login'), to.query)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-auth",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"repository": "github:bcgov/connect-nuxt",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"nuxt": "4.2.2",
|
|
12
12
|
"typescript": "5.9.3",
|
|
13
13
|
"vue-tsc": "3.2.1",
|
|
14
|
-
"@sbc-connect/eslint-config": "0.0.8",
|
|
15
14
|
"@sbc-connect/playwright-config": "0.1.1",
|
|
16
|
-
"@sbc-connect/vitest-config": "0.1.0"
|
|
15
|
+
"@sbc-connect/vitest-config": "0.1.0",
|
|
16
|
+
"@sbc-connect/eslint-config": "0.0.8"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@pinia/colada": "0.20.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pinia": "3.0.4",
|
|
24
24
|
"pinia-plugin-persistedstate": "4.7.1",
|
|
25
25
|
"@sbc-connect/nuxt-base": "0.6.1",
|
|
26
|
-
"@sbc-connect/nuxt-forms": "0.
|
|
26
|
+
"@sbc-connect/nuxt-forms": "0.5.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"preinstall": "npx only-allow pnpm",
|