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

Correctly publish OIDC redirectUris to Manage #233

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

MKodde
Copy link
Contributor

@MKodde MKodde commented Feb 4, 2019

The array that is passed along to manage should be a list, not a map.
If the php indexes are updated along the way, by adding/removing items
from the form. The index order might not be sequentially pristine. This
causes JSON encode to generate a map instead of a list.

By resetting the list before publishing, this problem should be remedied

https://www.pivotaltracker.com/story/show/163646662

@MKodde MKodde force-pushed the bugfix/redirect-uri-formatting branch from d883127 to 9eb59d3 Compare February 4, 2019 10:24
Copy link
Contributor

@pablothedude pablothedude left a comment

Choose a reason for hiding this comment

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

Wouldn't it be better if we would also enforce an array instead of a map. Because the problem does not lie in the form because the SaveOidcCommand will always return an array. The problem is the removal of the playground url from the array with redirect uri's in the Entity. If we do so should be also less prone to errors.

@MKodde MKodde force-pushed the bugfix/redirect-uri-formatting branch from 9eb59d3 to 7f1b222 Compare February 4, 2019 13:34
@MKodde
Copy link
Contributor Author

MKodde commented Feb 4, 2019

Yes, resetting the data while we are setting it on entity is more elegant.

The array that is passed along to manage should be a list, not a map.
If the php indexes are updated along the way, by adding/removing items
from the form. The index order might not be sequentially pristine. This
causes JSON encode to generate a map instead of a list.

By resetting the list before publishing, this problem should be remedied

https://www.pivotaltracker.com/story/show/163646662
@MKodde MKodde force-pushed the bugfix/redirect-uri-formatting branch from 7f1b222 to 771ced8 Compare February 4, 2019 13:39
@MKodde MKodde merged commit 0a2b22f into develop Feb 4, 2019
@MKodde MKodde deleted the bugfix/redirect-uri-formatting branch February 4, 2019 13:44
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