-
Notifications
You must be signed in to change notification settings - Fork 4
parameterize office id from the client #590
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
Conversation
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
…thout having to logout
… made when user is not logged in
MikeNeilson
left a comment
There was a problem hiding this 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.
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/datasource/DirectUserPreparer.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/res/OpenDcsResource.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/OpenDcsDatabaseFactory.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/datasource/SessionTimeZonePreparer.java
Outdated
Show resolved
Hide resolved
opendcs-web-client/src/main/webapp/WEB-INF/common/modals/organizations.jspf
Outdated
Show resolved
Hide resolved
Co-authored-by: Mike Neilson <[email protected]>
…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
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/datasource/DirectUserPreparer.java
Outdated
Show resolved
Hide resolved
…client_office_id # Conflicts: # opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/cwms/CwmsAuthorizationDAO.java
MikeNeilson
left a comment
There was a problem hiding this 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.
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/OrganizationResource.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/sec/OrganizationResource.java
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/cwms/CwmsOrganizationDao.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/cwms/CwmsOrganizationDao.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/OpenDcsDatabaseFactory.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/OrganizationDao.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/beans/ApiOrganization.java
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/cwms/CwmsOrganizationDao.java
Outdated
Show resolved
Hide resolved
opendcs-integration-test/src/test/java/org/opendcs/odcsapi/sec/AuthorizationTestIT.java
Show resolved
Hide resolved
opendcs-rest-api/src/main/java/org/opendcs/odcsapi/dao/cwms/CwmsOrganizationDao.java
Outdated
Show resolved
Hide resolved
opendcs-integration-test/src/test/java/org/opendcs/odcsapi/fixtures/DatabaseSetupExtension.java
Show resolved
Hide resolved
…msOrganizationDao.java Co-authored-by: Mike Neilson <[email protected]>
MikeNeilson
left a comment
There was a problem hiding this 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.
|
MikeNeilson
left a comment
There was a problem hiding this 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.



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:
(Formerly called regression tests.)