[SOLVED]
i need your help. Currently i am working with Moodle 2.7. I want to connect my moodle with google Authentication, so i downloaded OAuth2 in the moodle website (Plugins).
I have my own server, which is has static ip to access it.
Example: https:10.0.181.201/moodle
said that its a location of my moodle.
I just follow everything starts from take google Client ID and secret code also consent screen. when finished, i used Google login button privided inside OAuth2, it shows
Error 400. invalid_request. device_id and device_name are required for private IP:
https://10.0.181.201/moodle/auth/googleoauth2/gogle_redirect.php
and when i modify config.php in moodle folder from
$CFG->wwwroot = 'https://10.0.181.201/moodle';
to
$CFG->wwwroot = 'https://localhost/moodle';
it works perfect (i am log in as a root in my server) but can't others host cant access it because will direct to their own localhost.
anyone can solved this problem? Thanks