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

authhelper: auth detection rewrite #6276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

psiinon
Copy link
Member

@psiinon psiinon commented Mar 13, 2025

Overview

  • Rewrite of the auth request detection code to handle more cases.
  • Add domain to context if creds posted to it and using using auto-detect for session management.

Related Issues

Checklist

  • Update help
  • Update changelog
  • Run ./gradlew spotlessApply for code formatting
  • Write tests
  • Check code coverage
  • Sign-off commits
  • Squash commits
  • Use a descriptive title

For more details, please refer to the developer rules and guidelines.

@psiinon
Copy link
Member Author

psiinon commented Mar 13, 2025

Ugh, test pain 😦
For info they pass when I run them locally on the cmdline but fail in eclipse, so it will be an ordering issue with some tests not initializing / tidying up correctly. I'll look into it ...

for (SessionToken token : tokens) {
if (token.getSource().equals(kvPair.first)
&& token.getKey().equals(kvPair.second)) {
count += 1;
Copy link
Member

Choose a reason for hiding this comment

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

Why not count++ ? Not that this is wrong, it just seems strange for our code base.

@psiinon psiinon force-pushed the authhelper/auto-rewrite branch from d8bf2b2 to 81e9c4d Compare March 13, 2025 12:19
@psiinon
Copy link
Member Author

psiinon commented Mar 13, 2025

Logo
Checkmarx One – Scan Summary & Detailsdf3ca492-5e06-46a2-946c-4adbaf2171a9

Great job, no security vulnerabilities found in this Pull Request

@psiinon psiinon force-pushed the authhelper/auto-rewrite branch 6 times, most recently from 6e69a14 to f6e9b83 Compare March 13, 2025 17:05
Signed-off-by: Simon Bennetts <psiinon@gmail.com>
@psiinon psiinon force-pushed the authhelper/auto-rewrite branch from f6e9b83 to b09623d Compare March 13, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants