Skip to content
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

Initialize login UI with state needed for IdC flow #58

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

breedloj
Copy link
Contributor

@breedloj breedloj commented Oct 7, 2024

Description of changes:
Sends the expected prepareUi Javascript command to the login UI to enable the IdC login flow. This includes passing the supported OIDC regions list over to the UI. I am taking that from the SDK's supported regions list and parsing it to the expected format. I added an onLoad callback from the view to trigger the new call once the browser has actually loaded the page - otherwise it fires too early and fails.

image

Some of the other state is effectively hardcoded for now and will need to be updated as needed for anything that ends up being dynamic.

I have also wired up the LOGIN_IDC command. This gets fired when the "Continue" button is pressed and should, following this change, be used to request an IdC login from the auth module.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@breedloj breedloj force-pushed the breedloj/idcLoginWiring branch from 8868cb9 to 8e527ea Compare October 7, 2024 06:09
@pras0131 pras0131 merged commit f8b9734 into main Oct 7, 2024
1 check passed
@pras0131 pras0131 deleted the breedloj/idcLoginWiring branch October 7, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants