You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the NotImplementedError with IAMServerError in the get_server_metadata function
Add error handling in the do_device_flow routers endpoint for NoResultFound, ValueError and IAMServerError
Question:
The issue mentioned: "do we need to keep diracx.routers.auth.util? (has_properties function)"
After looking at the codebase, I think has_properties is not needed since access policies (WMSAccessPolicy, SandboxAccessPolicy ...) already handle property checks.
However, I'm not sure if the removing of this function should be done here or in a separate PR?
What do you think about it ?
After looking at the codebase, I think has_properties is not needed since access policies (WMSAccessPolicy, SandboxAccessPolicy ...) already handle property checks.
I think you are right indeed, it's not used anymore anywhere, just referenced in the document and I presume it should be deleted.
After looking at the codebase, I think has_properties is not needed since access policies (WMSAccessPolicy, SandboxAccessPolicy ...) already handle property checks.
I think you are right indeed, it's not used anymore anywhere, just referenced in the document and I presume it should be deleted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #559
Changes:
NotImplementedErrorwithIAMServerErrorin the get_server_metadata functiondo_device_flowrouters endpoint forNoResultFound,ValueErrorandIAMServerErrorQuestion:
The issue mentioned: "do we need to keep
diracx.routers.auth.util? (has_propertiesfunction)"After looking at the codebase, I think
has_propertiesis not needed since access policies (WMSAccessPolicy,SandboxAccessPolicy...) already handle property checks.However, I'm not sure if the removing of this function should be done here or in a separate PR?
What do you think about it ?