Closed PatrikMatiasko closed 3 months ago
This update primarily addresses typo corrections in function calls, ensuring the correct methods are invoked throughout the codebase. Additionally, it introduces the unauthorizedCallback
parameter in various API calls and functions, enhancing the security and error-handling mechanisms. The Config
struct in the security module also sees the addition of an EndSessionEndpoint
field, improving session management capabilities.
Files/Paths | Change Summary |
---|---|
http-gateway/web/packages/shared-ui |
Updated subproject commit hash. |
http-gateway/web/src/containers/App/App.tsx |
Corrected typo in function call from security.setWellKnowConfig to security.setWellKnownConfig . |
http-gateway/web/src/containers/App/AppInner/AppInner.tsx |
Added useCallback , WellKnownConfigType , and isFunction imports. Introduced unauthorizedCallback and added it to contextValue dependencies. |
http-gateway/web/src/containers/App/AppLayout/AppLayout.tsx |
Corrected typo in function call from security.getWellKnowConfig to security.getWellKnownConfig . |
http-gateway/web/src/containers/Certificates/hooks.ts |
Added unauthorizedCallback to useContext and useStreamApi calls. Corrected function name from getWellKnow to getWellKnown . |
http-gateway/web/src/containers/Certificates/rest.ts |
Corrected function name from getWellKnow to getWellKnown . |
http-gateway/web/src/containers/DeviceProvisioning/EnrollmentGroups/NewEnrollmentGroupsPage/... |
Corrected typo in function call from getWellKnowConfig to getWellKnownConfig . |
http-gateway/web/src/containers/DeviceProvisioning/LinkedHubs/DetailHeader/DetailHeader.tsx |
Modified deleteInformation array in DeleteModal component to remove an item with a placeholder value. |
http-gateway/web/src/containers/DeviceProvisioning/ProvisioningRecords/DetailPage/Tabs/Tab2... |
Corrected typo in function call from security.getWellKnowConfig to security.getWellKnownConfig . |
http-gateway/web/src/containers/DeviceProvisioning/hooks.ts |
Renamed getWellKnow to getWellKnown . Added unauthorizedCallback to context and API calls. |
http-gateway/web/src/containers/Devices/Detail/DevicesDetailsPage/DevicesDetailsPage.tsx |
Corrected typo in function call from security.getWellKnowConfig to security.getWellKnownConfig . |
http-gateway/web/src/containers/Devices/Detail/DevicesDetailsPage/Tabs/Tab2/Tab2.tsx |
Corrected typo in function call from getWellKnowConfig to getWellKnownConfig . |
http-gateway/web/src/containers/Devices/List/ProvisionNewDevice/ProvisionNewDevice.tsx |
Corrected typo in function call from getWellKnowConfig to getWellKnownConfig . |
http-gateway/web/src/containers/Devices/hooks.ts |
Added unauthorizedCallback to multiple functions and API calls. Corrected function name from getWellKnow to getWellKnown . |
http-gateway/web/src/containers/Devices/rest.ts |
Added unauthorizedCallback to various API calls. |
pkg/security/openid/config.go |
Added EndSessionEndpoint field to Config struct. |
test/oauth-server/service/getOpenIDConfiguration.go |
Included EndSessionEndpoint in openid.Config struct. |
test/oauth-server/service/logOut.go |
Enhanced logOut function to handle different HTTP methods for determining the redirect URI. |
test/oauth-server/uri/uri.go |
Added new constant PostLogoutRedirectURIKey . |
In code, we found a typo's lair,
Corrected paths with utmost care.
WellKnown
now stands in place,
Security's call, a smoother grace.
Endpoints end, sessions close,
With callbacks, our code now glows.
A rabbit's joy in changes made,
In every line, our craft displayed.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This PR introduces a mechanism to handle HTTP 401 (Unauthorized) errors by automatically logging out the user. When a 401 error is encountered during any request, the system will now log out the user and redirect them to the login page, ensuring that they are aware of the need to reauthenticate.