Skip to content

Conversation

@adamkorynta
Copy link
Contributor

@adamkorynta adamkorynta commented Nov 25, 2025

Problem Description

Fixes #464

Solution

Allowing the client to set the office id for data retrievals.

how you tested the change

In Progress

Where the following done:

  • Tests. Check all that apply:
    • Unit tests created or modified that run during ant test.
    • Integration tests created or modified that run during integration testing
      (Formerly called regression tests.)
    • Test procedure descriptions for manual testing
  • Was relevant documentation updated?
  • Were relevant config element (e.g. XML data) updated as appropriate

added to the existing username/password login though it'll just get replaced by #574 once this is done, will update to allow setting the organizationid header
need to add to the settings options a place where we can change the office id without having to logout
also need to populate swagger with a default organization header
Copy link
Collaborator

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Looks reasonable so far.

Would prefer the new DAOs were in line with recent PRs to the main project. Or even wait for and expand on them especially for the user management.

adamkorynta and others added 5 commits December 4, 2025 09:51
…client_office_id

# Conflicts:
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/OpenDcsResource.java
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/PlatformResources.java
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/AuthorizationCheck.java
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/basicauth/BasicAuthCheck.java
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/basicauth/BasicAuthResource.java
#	opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/openid/OidcAuthCheck.java
Copy link
Collaborator

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Seems like it's coming together.

Unfortunate most of the role dao's will get replaced when we implement the identity providers systems but such are transitions.

@MikeNeilson MikeNeilson mentioned this pull request Dec 9, 2025
6 tasks
@adamkorynta adamkorynta marked this pull request as ready for review December 10, 2025 17:48
Copy link
Collaborator

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Looks good. A few things not ideal, but we knew that would happen.

At least the first two items in the sonar issues report need to be addressed.

The whole window vs globalThis is i mean maybe we should now, but I'm not as worried at the moment.

@sonarqubecloud
Copy link

Copy link
Collaborator

@MikeNeilson MikeNeilson left a comment

Choose a reason for hiding this comment

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

Login page for OpenDCS-Postgres has an empty select instead of nothing. But we can live with that for now.

@adamkorynta adamkorynta merged commit cf8fafd into main Dec 10, 2025
8 checks passed
@adamkorynta adamkorynta deleted the feature/client_office_id branch December 10, 2025 22:24
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.

Add client parameterization of CWMS office id

3 participants