Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 PingIdentity
Copyright (c) 2025 Ping Identity Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
const fs = require('fs');
const path = require('path');

Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/flow-link.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { FlowCollector, InitFlow } from '@forgerock/davinci-client/types';

export default function flowLinkComponent(
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/multi-value.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { MultiSelectCollector, Updater } from '@forgerock/davinci-client/types';

/**
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/password.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { PasswordCollector, Updater } from '@forgerock/davinci-client/types';
import { dotToCamelCase } from '../helper.js';

Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/protect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type {
TextCollector,
ValidatedTextCollector,
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/single-value.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { SingleSelectCollector, Updater } from '@forgerock/davinci-client/types';

/**
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/social-login-button.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { IdpCollector } from '@forgerock/davinci-client/types';

export default function submitButtonComponent(
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/submit-button.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { SubmitCollector } from '@forgerock/davinci-client/types';

export default function submitButtonComponent(formEl: HTMLFormElement, collector: SubmitCollector) {
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/components/text.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type {
TextCollector,
ValidatedTextCollector,
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export function dotToCamelCase(str: string) {
return str
.split('.')
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import './style.css';

import { Config, FRUser, TokenManager } from '@forgerock/javascript-sdk';
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/server-configs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import type { DaVinciConfig } from '@forgerock/davinci-client/types';

export const serverConfigs: Record<string, DaVinciConfig> = {
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-app/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/// <reference types="vite/client" />
6 changes: 6 additions & 0 deletions e2e/davinci-app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import * as path from 'path';
import { defineConfig } from 'vite';

Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { PlaywrightTestConfig } from '@playwright/test';
import { workspaceRoot } from '@nx/devkit';

Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { expect, test } from '@playwright/test';
import { asyncEvents } from './utils/async-events.js';
import { password, username } from './utils/demo-user.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/form-fields.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { expect, test } from '@playwright/test';

import { asyncEvents } from './utils/async-events.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/middleware.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { expect, test } from '@playwright/test';
import { asyncEvents } from './utils/async-events.js';

Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/register.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { expect, test } from '@playwright/test';
import { asyncEvents } from './utils/async-events.js';
import { password } from './utils/demo-user.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/utils/async-events.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export function asyncEvents(page) {
return {
async clickButton(text, endpoint) {
Expand Down
6 changes: 6 additions & 0 deletions e2e/davinci-suites/src/utils/demo-user.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export const username = 'demouser';
export const password = 'U.QPDWEN47ZMyJhCDmhGLK*nr';
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/endpoints/custom-html.endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { pipe } from 'effect';
import { Api, ApiResponse } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/endpoints/davinci-authorize.endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { pipe } from 'effect';
import { Api } from 'effect-http';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { pipe } from 'effect';
import { Api } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/endpoints/token.endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { pipe } from 'effect';
import { Api } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/endpoints/userinfo.endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { pipe } from 'effect';
import { Api, ApiResponse, Security } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/errors/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
class InvalidUsernamePassword {
readonly _tag = 'InvalidUsernamePassword';
}
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/example-server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { RouterBuilder, Middlewares, ExampleServer } from 'effect-http';
import { NodeRuntime } from '@effect/platform-node';
import { NodeServer } from 'effect-http-node';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/handlers/authorize.handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { toCookieHeader } from '@effect/platform/Cookies';
import { Effect } from 'effect';
import { RouterBuilder } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/handlers/custom-html-template.handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { toCookieHeader } from '@effect/platform/Cookies';
import { Effect } from 'effect';
import { RouterBuilder } from 'effect-http';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/handlers/open-id-configuration.handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Effect } from 'effect';
import { RouterBuilder } from 'effect-http';
import { apiSpec } from '../spec.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/handlers/token.handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Effect } from 'effect';
import { RouterBuilder } from 'effect-http';
import { apiSpec } from '../spec.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/handlers/userinfo.handler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Effect } from 'effect';
import { RouterBuilder } from 'effect-http';
import { apiSpec } from '../spec.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/helpers/cookie.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Cookies } from '@effect/platform';
import { Effect, Option, pipe } from 'effect';

Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/helpers/match.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Schema } from '@effect/schema';
import { Effect, Match } from 'effect';

Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/helpers/test/cookie.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { it } from '@effect/vitest';
import { expect } from 'vitest';
import {
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/helpers/test/match.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { it } from '@effect/vitest';
import { expect } from 'vitest';
import { PingRequestData, validator } from '../match.js';
Expand Down
6 changes: 6 additions & 0 deletions e2e/mock-api-v2/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { Config, Effect, Layer, pipe } from 'effect';
import { RouterBuilder, Middlewares } from 'effect-http';
import { NodeRuntime } from '@effect/platform-node';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
const PingProtectNode = {
interactionId: '1894775c-ba76-4989-a303-320f0547c66e',
connectorId: 'api',
Expand Down
Loading