Skip to content

Mock api updates2#377

Merged
ryanbas21 merged 5 commits into
mainfrom
mock-api-updates2
Sep 2, 2025
Merged

Mock api updates2#377
ryanbas21 merged 5 commits into
mainfrom
mock-api-updates2

Conversation

@ryanbas21
Copy link
Copy Markdown
Collaborator

@ryanbas21 ryanbas21 commented Aug 26, 2025

JIRA Ticket

https://pingidentity.atlassian.net/browse/SDKS-4264
https://pingidentity.atlassian.net/browse/SDKS-4266

Description

Adds userinfo routes, fixes the openid route so its more dynamic, adds touches up authorization routes. fix any issues as we progressed through the flow

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 26, 2025

⚠️ No Changeset found

Latest commit: cccb90d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "ping-javascript-sdk" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Aug 26, 2025

View your CI Pipeline Execution ↗ for commit cccb90d

Command Status Duration Result
nx run-many -t build ✅ Succeeded <1s View ↗
nx affected -t build typecheck lint test e2e-ci ✅ Succeeded 1m 30s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-02 20:20:57 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 26, 2025

Deployed b047e79 to https://ForgeRock.github.io/ping-javascript-sdk/pr-377/b047e791c6a73ca0491332609c1a244fa3f47dac branch gh-pages in ForgeRock/ping-javascript-sdk

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 26, 2025

📦 Bundle Size Analysis

📦 Bundle Size Analysis

➖ No Changes

@forgerock/davinci-client - 34.1 KB
@forgerock/sdk-utilities - 4.0 KB
@forgerock/device-client - 9.2 KB
@forgerock/sdk-types - 5.9 KB
@forgerock/protect - 150.1 KB
@forgerock/sdk-oidc - 2.7 KB
@forgerock/sdk-logger - 1.6 KB
@forgerock/storage - 1.4 KB
@forgerock/sdk-request-middleware - 4.4 KB
@forgerock/iframe-manager - 2.4 KB
@forgerock/oidc-client - 21.4 KB


11 packages analyzed • Baseline from latest main build

Legend

🆕 New package
🔺 Size increased
🔻 Size decreased
➖ No change

ℹ️ How bundle sizes are calculated
  • Current Size: Total gzipped size of all files in the package's dist directory
  • Baseline: Comparison against the latest build from the main branch
  • Files included: All build outputs except source maps and TypeScript build cache
  • Exclusions: .map, .tsbuildinfo, and .d.ts.map files

🔄 Updated automatically on each push to this PR

'code token',
'code token id_token',
],
response_modes_supported: ['pi.flow', 'query', 'fragment', 'form_post'],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should ensure 'pi.flow' is only included as a supported mode if it's PingOne, but absent in PingAM.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a different route than this, wouldn't it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I mentally connect this to the route it's serving? Is this PingOne only wellknown endpoint? If so, I can't immediately identify it as such.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every handler has a name, I named this openid. I can be more explicit.

All these routes are PingOne specific right now. I haven't touched anything AIC.

the spec.ts file defines the route, name, and schemas for the route.

The handler is the implementation of it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, okay. Since OIDC is a spec, and not server-specific, we'll want to discuss how we will differentiate the subtle differences and explicitly label them.

Copy link
Copy Markdown
Collaborator

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but let's have a conversation about differentiating between PingAM and PingOne soon.

@ryanbas21 ryanbas21 marked this pull request as ready for review September 2, 2025 16:35
Removes the `acr_values` query parameter from the capabilities endpoint and instead passes the value in a cookie.

This commit addresses the following acceptance criteria:
- The `authorize` handler now sets the `acr_values` cookie.
- The `capabilities` handler now reads the `acr_values` from the cookie.
- The `CapabilitiesQueryParams` has been removed from the `capabilities` endpoint definition.

This change makes the API more compliant with the documentation.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.47%. Comparing base (23d244f) to head (cccb90d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #377   +/-   ##
=======================================
  Coverage   55.47%   55.47%           
=======================================
  Files          32       32           
  Lines        2044     2044           
  Branches      340      340           
=======================================
  Hits         1134     1134           
  Misses        910      910           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ryanbas21 ryanbas21 merged commit 7d207f1 into main Sep 2, 2025
4 checks passed
@SteinGabriel SteinGabriel deleted the mock-api-updates2 branch April 17, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants