- When configuring an auth provider we prompt user for creds
- Once user has successfully authed with keycloak it redirects back to our `veritfy-auth` page
- Here normally we're all good and we extract the `code` and close the popup
- However keycloak can error, with for instance `Invalid scopes: profile,email`, which were previously ignored and sent back an undefined code
- Now we handle errors (these may be in a different format for other providers) and no auth codes
- Much of the grunt work is generic OIDC
Also fixed
- store's principalId was not updated after user enables any auth provider
- Colour of InfoBox title in dark mode
- Issue where some kind of errors when enabling provider were shown as an empty box (exceptionToErrorsArray is now used, which also uses a better catch all stringify)
- An issue where enabling and disabling a provider in the same visit meant lost defaults
- An issue where Auth / Groups would not display (async part had been removed)
- Resource instance validation would show all fields as invalid once one field had failed