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

fix: avoid validation errors during plan for missing realm and openid client resources #841

Merged

Conversation

kherock
Copy link
Contributor

@kherock kherock commented May 9, 2023

Fixes #738

This brings the 404 handling of missing OpenID clients in line with the implementation for missing SAML clients when resolving client scopes. Basically, the validation of the 404 response was occurring too early, and the read context was throwing instead of return a blank ID via the handleNotFound handler.

This also includes a similar fix for generic_role_mapper resources.

The way that I tested these fixes was to configure a realm using these resource types, and run terraform refresh after manually deleting the realm.

@kherock kherock force-pushed the fix-missing-default-scope-refresh branch from baae0c3 to d2ff8f6 Compare May 9, 2023 02:50
@kherock

This comment was marked as resolved.

@kherock kherock force-pushed the fix-missing-default-scope-refresh branch 2 times, most recently from e18f3cd to 663f2e2 Compare May 18, 2023 17:06
@kherock
Copy link
Contributor Author

kherock commented May 18, 2023

I was able to restore the original message! Would really appreciate a review on this one

@kherock kherock force-pushed the fix-missing-default-scope-refresh branch from 663f2e2 to 735a810 Compare June 8, 2023 14:57
@kherock
Copy link
Contributor Author

kherock commented Jun 8, 2023

@mrparkers sorry to be a bother, but could this be looked at soon?

@mrparkers
Copy link
Owner

Sorry, I meant to get to this before the latest release, but it slipped my mind.

This LGTM, I'll merge after tests pass and cut a release today.

@mrparkers mrparkers merged commit bac7360 into mrparkers:master Jun 8, 2023
@kherock kherock deleted the fix-missing-default-scope-refresh branch June 9, 2023 00:28
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.

Avoiding validation error: client with id <id> does not exist in keycloak_openid_client_default_scopes
2 participants