Search code examples
single-sign-ongoogle-workspacenextcloud

Nextcloud and Google SAML SSO: Error parsing the request, No SAML message present in request


I struggle a bit to get Nextcloud to work with Google as SSO provider. I have URL target of the iPd is https://accounts.google.com/o/saml2/idp?idpid=xxxxxxx then I get

403. That’s an error.

Error: app_not_configured_for_user

So following the suggestion here, I changed the url to

https://accounts.google.com/accountchooser?continue=https://accounts.google.com/o/saml2/idp?idpid=xxxxxx

Which redirects me to the google account chooser, but then I get, after selecting my account

null. That’s an error.

Error parsing the request, No SAML message present in request That’s all we know.

enter image description here

Sometimes I am not asked for a user account, so then I get the following from Nextcloud

Account not provisioned.

Your account is not provisioned, access to this service is thus not possible.

enter image description here


Solution

  • What worked for me is to configure Google having these attribute mappings google config While on Nextcloud I configure SAML as follows nextcloud saml config