Skip to content

Google Workspace support#161

Merged
pond merged 2 commits into
mainfrom
feature/google-scim
Sep 12, 2025
Merged

Google Workspace support#161
pond merged 2 commits into
mainfrom
feature/google-scim

Conversation

@pond
Copy link
Copy Markdown
Owner

@pond pond commented Aug 14, 2025

Addresses #142. Thanks for the bug report and suggested resolution, @kwent 😄

@pond pond added the bug Something isn't working label Aug 14, 2025
@pond pond mentioned this pull request Aug 14, 2025
@pond pond merged commit 5ba4816 into main Sep 12, 2025
6 checks passed
@pond pond deleted the feature/google-scim branch September 12, 2025 02:58
request.format = :scim
elsif request.format == :scim
request.headers['CONTENT_TYPE'] = scim_mime_type
elsif request.media_type.downcase == 'application/json' && request.user_agent.start_with?('Google') # https://github.com/pond/scimitar/issues/142
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have the same problem, but some of our customers send something else alongside application/json content type, so this update doesn't cover our use case and we still have to workaround on our side.

I think there could be a config option instead to allow setting supported content types explicitly. Additionally, I guess user agent could be left unset, so this will produce an exception like this:

undefined method 'start_with?' for nil
["[...]/3.4.2/lib/ruby/gems/3.4.0/gems/scimitar-2.13.0/app/controllers/scimitar/application_controller.rb:104:in 'Scimitar::ApplicationController#require_scim'"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@aerodynamik Noted - I hope to have some time to look into this on Friday.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@aerodynamik via #166, Scimitar 2.14.0 has been released which lets you provide your own sanitizer for inbound requests.

Hopefully, this meets your requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants