-
Notifications
You must be signed in to change notification settings - Fork 6
refactor(journey): migrate journey flow from legacy sdk to journey-client #468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ea7be03
feat(journey-client): install and configure journey-client
vatsalparikh 99b0cd7
refactor(journey): migrate journey logic from legacy forgerock sdk to…
vatsalparikh 701fcc2
refactor(journey): adding support for query params to resume function…
vatsalparikh 8bacddc
refactor(journey): GenericError handling support
vatsalparikh 362583c
refactor(journey): refactor stories, mocks, and story.svelte filees f…
vatsalparikh 04034bd
refactor(journey): refactor stages to use journey client
vatsalparikh 9a6bcbc
chore: add journey-client migration changeset
vatsalparikh 6544844
refactor(journey): configure login-app and login-widget to use the jo…
vatsalparikh ae0366e
refactor(journey): update demo custom components to use journey clien…
vatsalparikh be6f012
refactor(journey): update copyright headers
vatsalparikh d63fffe
refactor(journey): add FR_AM_WELLKNOWN_URL to ci and update lock file
vatsalparikh da4d4b3
refactor(journey): fixing failing ci tests
vatsalparikh e1c623a
test(journey): more changes to fix ci tests
vatsalparikh e71321c
refactor(journey): updated journey client logic so now journey store …
vatsalparikh 40f9a7e
fix(journey): adding redirect method to journey store and fixing some…
vatsalparikh 54452a1
fix(journey): use JourneyResult and JourneyLoginFailure types instead…
vatsalparikh 06e74ee
fix(journey): use Device from journey-client instead of FRDevice
vatsalparikh 1226501
fix(journey): moved journey clint configuration into journey store
vatsalparikh c0319c4
fix(journey): fix failing CI tests
vatsalparikh af99389
chore(login-app): show helpful error message when env variables are n…
vatsalparikh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@forgerock/login-widget': major | ||
| --- | ||
|
|
||
| Migrate the journey flow implementation from `@forgerock/javascript-sdk` to `@forgerock/journey-client`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,35 @@ | ||
| /** | ||
| * | ||
| * Copyright © 2025 Ping Identity Corporation. All right reserved. | ||
| * Copyright © 2025-2026 Ping Identity Corporation. All right reserved. | ||
| * | ||
| * This software may be modified and distributed under the terms | ||
| * of the MIT license. See the LICENSE file for details. | ||
| * | ||
| **/ | ||
|
|
||
| import { env } from '$env/dynamic/private'; | ||
| import { error } from '@sveltejs/kit'; | ||
| import type { LayoutServerLoad } from './$types'; | ||
|
|
||
| export const load: LayoutServerLoad = () => ({ | ||
| amUrl: env.FR_AM_URL ?? '', | ||
| clientId: env.FR_OAUTH_PUBLIC_CLIENT ?? '', | ||
| realmPath: env.FR_REALM_PATH ?? '', | ||
| scope: env.FR_OAUTH_SCOPE, | ||
| }); | ||
| export const load: LayoutServerLoad = () => { | ||
| const amUrl = env.FR_AM_URL; | ||
| const clientId = env.FR_OAUTH_PUBLIC_CLIENT; | ||
| const realmPath = env.FR_REALM_PATH; | ||
| const wellknown = env.FR_AM_WELLKNOWN_URL; | ||
| const scope = env.FR_OAUTH_SCOPE; | ||
|
|
||
| if (!amUrl || !realmPath || !wellknown) { | ||
| throw error( | ||
| 500, | ||
| 'Login App is not configured. Ensure the required environment variables like FR_AM_URL, FR_REALM_PATH, and FR_AM_WELLKNOWN_URL are set before starting the app.', | ||
| ); | ||
| } | ||
|
|
||
| return { | ||
| amUrl, | ||
| clientId, | ||
| realmPath, | ||
| scope, | ||
| wellknown, | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.