Skip to content

feat: adfs authentication plugin - #207

Merged
sophia-bq merged 2 commits into
mainfrom
feat/adfs
Oct 19, 2026
Merged

sophia-bq merged 2 commits into
mainfrom
feat/adfs

Conversation

@sophia-bq

Copy link
Copy Markdown
Contributor

Summary

Description

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

@sophia-bq
sophia-bq requested a review from a team as a code owner October 14, 2026 22:01
@sophia-bq
sophia-bq force-pushed the feat/adfs branch 2 times, most recently from 03b98ed to e05d068 Compare October 15, 2026 18:14

@aaron-congo aaron-congo left a comment •

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.

Thanks for working on this! I reviewed the changes myself and had one suggestion. I also ran the PR through Claude, which caught some additional gaps. I've gone through those myself and posted the ones I agree with as review comments, but feel free to push back if you think any of them don't apply.

On tests, it might be good to add:

  • a spec that connects twice with the same props, which would catch the driver_props issue
  • plugin_manager_spec cases for iam,federated_auth / secrets_manager,federated_auth conflicts
  • a check that the retry-after-login-failure spec actually uses the new token

@aaron-congo

Copy link
Copy Markdown
Contributor

Minor:

  • base_saml_auth_plugin.rb:166 - IdP/STS failures (e.g. SocketError from a mistyped idp_endpoint) come out of connect without saying the SAML step failed; wrapping them in SamlAuthError (keeping the original as cause) would make that clearer.
  • saml_utils.rb:124 - absolute_redirect resolves relative Locations against the host root, not the request URL; URI.join(uri, location).to_s handles every case.
  • saml_utils.rb:117 - the cookie jar ignores Domain and is shared across redirects, so cookies can be sent to a different HTTPS host; keying cookies by host would prevent that.
  • federated_auth_plugin.rb:107 - the chained gsubs in unescape_html decode < twice; CGI.unescapeHTML decodes in one pass.
  • federated_auth_plugin.rb:57 - a wrong password gives "failed to obtain SAML assertion" with no detail; including or debug-logging part of the response body would help diagnosis.
  • property_definition.rb:177 - IDP_NAME is never read. Line 183: "relaying" should be "relying".
  • base_saml_auth_plugin.rb:34 - IAM_TOKEN_CACHE_NAME/clear_cache duplicate IamAuthPlugin's; referencing IamAuthPlugin::IAM_TOKEN_CACHE_NAME keeps the shared cache from drifting.
  • plugin_manager.rb:64 - weight 1800 ties with IAM; JDBC uses 2000 (after secrets manager).
  • CHANGELOG.md:10 - add ([PR #207](https://github.com/aws/aws-advanced-ruby-driver-wrapper/pull/207)) to match the other entries.

@sophia-bq
sophia-bq merged commit c138c1c into main Oct 19, 2026
10 checks passed
@sophia-bq
sophia-bq deleted the feat/adfs branch October 19, 2026 19:37
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.

3 participants