Skip to content

Conversation

@myang0
Copy link

@myang0 myang0 commented May 29, 2020

Why?

Prior to this PR, it was only possible to find SCIM Users/Groups by their id. This PR adds more configuration options in the canonical_reference variable which allows for Users/Groups to be found by their uuid as well now, which would greatly improve security.

What?

  • Adds the canonical_reference variable to the configuration which must be set to either :id or :uuid
  • Change dummy app to set the canonical_reference to :uuid, change tests accordingly as a result
  • Add uuid to both User and Group models within the dummy app for testing purposes
  • Small refactoring changes to tests
  • Update initializer

@myang0 myang0 requested review from bj-mcduck and stevenallen05 May 29, 2020 20:34
@myang0 myang0 self-assigned this May 29, 2020
Base automatically changed from rails_5_2 to master June 2, 2020 19:24
update_group_status(group) unless put_active_param.nil?

ScimRails.config.after_scim_response.call(group, "CREATED") unless ScimRails.config.after_scim_response.nil?
final_callback_hook(group, "CREATED")

Choose a reason for hiding this comment

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

where are these methods coming from?
is this call still conditional?

Copy link
Author

Choose a reason for hiding this comment

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

It's from application_controller.rb, I made it so it would check in the methods I made there instead

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.

4 participants