Skip to content

Commit 7bba5de

Browse files
committed
feat(iframe-manager): create-iframe-manager
create an iframe manager package which is consumed by davinci-client. Updated types throughout the codebase
1 parent c6c2691 commit 7bba5de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+277
-2296
lines changed

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
},
7171
"test": {
7272
"inputs": ["default", "^default", "noMarkdown", "^noMarkdown"],
73-
"dependsOn": ["^test", "^build"],
73+
"dependsOn": ["^test", "^build", "^build"],
7474
"outputs": ["{projectRoot}/coverage"],
7575
"cache": true
7676
},

packages/davinci-client/src/lib/config.types.test-d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import { describe, expectTypeOf, it } from 'vitest';
88
import type { DaVinciConfig, InternalDaVinciConfig } from './config.types.js';
9-
import type { AsyncLegacyConfigOptions } from '@forgerock/sdk-types';
9+
import type { AsyncLegacyConfigOptions, AuthorizeUrl } from '@forgerock/sdk-types';
1010
import type { WellknownResponse } from './wellknown.types.js';
1111

1212
describe('Config Types', () => {
@@ -48,7 +48,7 @@ describe('Config Types', () => {
4848
const config: InternalDaVinciConfig = {
4949
wellknownResponse: {
5050
issuer: 'https://example.com',
51-
authorization_endpoint: 'https://example.com/auth',
51+
authorization_endpoint: 'https://example.com/auth' as AuthorizeUrl,
5252
token_endpoint: 'https://example.com/token',
5353
userinfo_endpoint: 'https://example.com/userinfo',
5454
jwks_uri: 'https://example.com/jwks',
@@ -97,7 +97,7 @@ describe('Config Types', () => {
9797
// InternalDaVinciConfig specific property
9898
wellknownResponse: {
9999
issuer: 'https://example.com',
100-
authorization_endpoint: 'https://example.com/auth',
100+
authorization_endpoint: 'https://example.com/auth' as AuthorizeUrl,
101101
token_endpoint: 'https://example.com/token',
102102
userinfo_endpoint: 'https://example.com/userinfo',
103103
jwks_uri: 'https://example.com/jwks',
@@ -135,7 +135,7 @@ describe('WellknownResponse', () => {
135135
it('should have all required OIDC properties', () => {
136136
const wellknown: WellknownResponse = {
137137
issuer: 'https://example.com',
138-
authorization_endpoint: 'https://example.com/auth',
138+
authorization_endpoint: 'https://example.com/auth' as AuthorizeUrl,
139139
token_endpoint: 'https://example.com/token',
140140
userinfo_endpoint: 'https://example.com/userinfo',
141141
jwks_uri: 'https://example.com/jwks',
@@ -178,7 +178,7 @@ describe('WellknownResponse', () => {
178178
it('should allow optional OIDC properties', () => {
179179
const wellknownWithOptionals: WellknownResponse = {
180180
issuer: 'https://example.com',
181-
authorization_endpoint: 'https://example.com/auth',
181+
authorization_endpoint: 'https://example.com/auth' as AuthorizeUrl,
182182
token_endpoint: 'https://example.com/token',
183183
userinfo_endpoint: 'https://example.com/userinfo',
184184
jwks_uri: 'https://example.com/jwks',
@@ -233,7 +233,7 @@ describe('WellknownResponse', () => {
233233
it('should enforce URL format for endpoint properties', () => {
234234
const wellknown: WellknownResponse = {
235235
issuer: 'https://example.com',
236-
authorization_endpoint: 'https://example.com/auth',
236+
authorization_endpoint: 'https://example.com/auth' as AuthorizeUrl,
237237
token_endpoint: 'https://example.com/token',
238238
userinfo_endpoint: 'https://example.com/userinfo',
239239
jwks_uri: 'https://example.com/jwks',

packages/davinci-client/src/lib/wellknown.types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { AuthorizeUrl } from '@forgerock/sdk-types';
2+
13
/*
24
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
35
*
@@ -6,7 +8,7 @@
68
*/
79
export interface WellknownResponse {
810
issuer: string;
9-
authorization_endpoint: string;
11+
authorization_endpoint: AuthorizeUrl;
1012
pushed_authorization_request_endpoint: string;
1113
token_endpoint: string;
1214
userinfo_endpoint: string;
@@ -36,7 +38,7 @@ export interface WellknownResponse {
3638
}
3739

3840
export interface Endpoints {
39-
authorize: string;
41+
authorize: AuthorizeUrl;
4042
issuer: string;
4143
introspection: string;
4244
tokens: string;

packages/effects/logger/README.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

packages/effects/logger/package.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/effects/logger/src/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/effects/logger/src/lib/logger.effects.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/effects/logger/src/lib/logger.test.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

packages/effects/logger/src/lib/logger.types.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/effects/logger/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)