Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [22.0.2] - 2025-04-14

- Fixes issue with ThirdParty provider info on dashboard

## [22.0.1] - 2025-03-26

- Added Dashboard support for WebAuthn
Expand Down
15 changes: 10 additions & 5 deletions lib/build/recipe/dashboard/api/multitenancy/getThirdPartyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,23 @@ async function getThirdPartyConfig(_, tenantId, options, userContext) {
}
// At this point, providersFromCore.length === 1
// query param may be passed if we are creating a new third party config, check and update accordingly
if (["okta", "active-directory", "boxy-saml", "google-workspaces"].includes(thirdPartyId)) {
if (thirdPartyId === "okta") {
if (
thirdPartyId.startsWith("okta") ||
thirdPartyId.startsWith("active-directory") ||
thirdPartyId.startsWith("boxy-saml") ||
thirdPartyId.startsWith("google-workspaces")
) {
if (thirdPartyId.startsWith("okta")) {
const oktaDomain = options.req.getKeyValueFromQuery("oktaDomain");
if (oktaDomain !== undefined) {
additionalConfig = { oktaDomain };
}
} else if (thirdPartyId === "active-directory") {
} else if (thirdPartyId.startsWith("active-directory")) {
const directoryId = options.req.getKeyValueFromQuery("directoryId");
if (directoryId !== undefined) {
additionalConfig = { directoryId };
}
} else if (thirdPartyId === "boxy-saml") {
} else if (thirdPartyId.startsWith("boxy-saml")) {
let boxyURL = options.req.getKeyValueFromQuery("boxyUrl");
let boxyAPIKey = options.req.getKeyValueFromQuery("boxyAPIKey");
if (boxyURL !== undefined) {
Expand All @@ -73,7 +78,7 @@ async function getThirdPartyConfig(_, tenantId, options, userContext) {
additionalConfig = Object.assign(Object.assign({}, additionalConfig), { boxyAPIKey });
}
}
} else if (thirdPartyId === "google-workspaces") {
} else if (thirdPartyId.startsWith("google-workspaces")) {
const hd = options.req.getKeyValueFromQuery("hd");
if (hd !== undefined) {
additionalConfig = { hd };
Expand Down
2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions lib/ts/recipe/dashboard/api/multitenancy/getThirdPartyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,23 @@ export default async function getThirdPartyConfig(

// query param may be passed if we are creating a new third party config, check and update accordingly

if (["okta", "active-directory", "boxy-saml", "google-workspaces"].includes(thirdPartyId)) {
if (thirdPartyId === "okta") {
if (
thirdPartyId.startsWith("okta") ||
thirdPartyId.startsWith("active-directory") ||
thirdPartyId.startsWith("boxy-saml") ||
thirdPartyId.startsWith("google-workspaces")
) {
if (thirdPartyId.startsWith("okta")) {
const oktaDomain = options.req.getKeyValueFromQuery("oktaDomain");
if (oktaDomain !== undefined) {
additionalConfig = { oktaDomain };
}
} else if (thirdPartyId === "active-directory") {
} else if (thirdPartyId.startsWith("active-directory")) {
const directoryId = options.req.getKeyValueFromQuery("directoryId");
if (directoryId !== undefined) {
additionalConfig = { directoryId };
}
} else if (thirdPartyId === "boxy-saml") {
} else if (thirdPartyId.startsWith("boxy-saml")) {
let boxyURL = options.req.getKeyValueFromQuery("boxyUrl");
let boxyAPIKey = options.req.getKeyValueFromQuery("boxyAPIKey");
if (boxyURL !== undefined) {
Expand All @@ -100,7 +105,7 @@ export default async function getThirdPartyConfig(
additionalConfig = { ...additionalConfig, boxyAPIKey };
}
}
} else if (thirdPartyId === "google-workspaces") {
} else if (thirdPartyId.startsWith("google-workspaces")) {
const hd = options.req.getKeyValueFromQuery("hd");
if (hd !== undefined) {
additionalConfig = { hd };
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
export const version = "22.0.1";
export const version = "22.0.2";

export const cdiSupported = ["5.3"];

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supertokens-node",
"version": "22.0.1",
"version": "22.0.2",
"description": "NodeJS driver for SuperTokens core",
"main": "index.js",
"scripts": {
Expand Down
Loading