Google System Account Connection Problem

Google System Account Connection Problem

by David Morrow -
Number of replies: 8

Greetings,

I am having a problem connecting a system account to a Google service on my OAuth2 Services Page. This is a Moodle 3.5+ instance.

This problem occurs at a point before the system account information is entered.

  • Starting from the OAuth2 Services page
  • Click the "Connect to a system account" icon: 
  • system account icon
  • Confirmation page loads fine:
  • confirmation
  • But clicking Continue opens a page titled, "Index of /admin/tool/oauth2":

I was able to set up a Microsoft service with a system account on the same page, and both Google and Microsoft on another site that was set up at the same time and with similar infrastructure.

Any help or insight is appreciated!

Thanks,

David



Average of ratings: -
In reply to David Morrow

Re: Google System Account Connection Problem

by Ribeiro Francisco -
Hello,
I have the same problem, did you solve it already?

Thanks,
Francisco

In reply to Ribeiro Francisco

Re: Google System Account Connection Problem

by David Morrow -

Francisco,

No - and no one else has responded. I thought about re-posting this in the General Help forum. I know double-posting is not ideal, but I might get more attention there.

If I figure anything out, I will post it here. You do the same, please.

And thanks for checking.

David

In reply to David Morrow

Re: Google System Account Connection Problem

by Ribeiro Francisco -

Hello David,


Thank you for your quick response. Let's figure this out.

In the first place, did you enabled OAuth2 in 'MOODLE_DIR/admin/settings.php?section=manageauths' ?


Did you check if php has error logs?  Mine doesn't but still not working.


Best regards,

Francisco



In reply to Ribeiro Francisco

Re: Google System Account Connection Problem

by Ribeiro Francisco -

Ok.. I just solved my problem.

I just deleted the last '/' from my base url.

Hope you can fix it too.


In reply to Ribeiro Francisco

Re: Google System Account Connection Problem

by David Morrow -

Francisco,

Thanks for the response. I don't have Oauth2 authentication enabled, but we don't use it for authentication. I did not think that the authentication method had to be enabled for Oauth2 services to work. It is not enabled on the the other site I mentioned, and it let me get through the process of setting up a Google service. But I can try it.

I don't see where I have access to PHP error logs. I am not a sysadmin or technician, but I do have access to the server through WebMin and sftp - I probably have more access than I'm qualified for...

I appreciate the suggestions. Glad to hear you got yours figured out. Where was this trailing slash? The config file?

Thanks,

David

In reply to David Morrow

Re: Google System Account Connection Problem

by Ribeiro Francisco -

Hello David,

That error seems to appear when when we use incorrect configurations.

I removed the last trailing slash from the "Service Base URL". I had .../auth/ and now .../auth

moodle_print


Good luck,

Francisco

In reply to Ribeiro Francisco

Re: Google System Account Connection Problem

by David Morrow -

I am not sure what our problem was, but a site update (3.5.1 to 3.5.4) seems to have resolved it. I was able to complete the process of adding a system account.

Thanks for your suggestions.

David