Skip to content

Conversation

@torbjokv
Copy link

@torbjokv torbjokv commented Dec 9, 2024

Issue #516

Description of changes:
CognitoUserPoolPreTokenGenerationEventV2 -> GroupOverrideDetails Response should return list types for groupsToOverride and iamRolesToOverride even when I use V2 pre token generation, not Map<String, String>

This PR is mostly for me to explain the issue and will probably not build because of missing bumping of model version as I don't know how to do that

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lachlanodonnell
Copy link

I found this out the hard way - after spending a couple of hours I eventually use Jackson to convert the input CognitoUserPoolPreTokenGenerationEventV2 object to a Map and manually set the List for response group override. Please update the Java objects for CognitoUserPoolPreTokenGenerationEventV2.GroupOverrideDetails as they should be Lists, not Maps.

Found on 3.14.0 (maven central).

@torbjokv
Copy link
Author

torbjokv commented Feb 4, 2025

solved by #519

@torbjokv torbjokv closed this Feb 4, 2025
@torbjokv torbjokv deleted the fix-group-override-details-to-list branch February 4, 2025 11:10
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