Clicking on accessed services will result in error if the consent feature in EB is disabled
Closed this issue · 6 comments
EB API will return a 404 when asked for consent if the feature is disabled. This will return a symfony error in profile
This is correct. Profile uses the consent information to be able to show which service providers you logged into. What would you expect to happen?
I expected to see a blank page or not available instead of a symfony crash report
This is what the user sees:
This is currently logged: OpenConext\EngineBlockApiClientBundle\Exception\ResourceNotFoundException: "Resource "consent/urn%3Acollab%3Aperson%3Aexample.com%3Aadmin" not found"
I can add to that exception message something like "Is Engineblocks consent feature enabled?"
Logging should suffice I think - I don't think it's worthwhile to add a specific end user facing message in this case since it's only the admin that can resolve this?
Am I doing something wrong than? Because i get this message:
It's the same message but you're running the application in development mode.
Ah i see. That is a lot better yes. :D