Hello all,

I'm trying to add Google authentication to my app running on localhost. I 
got the client ID and client secret, and the code looks like this

plugin 'Web:Auth' => {
   module => 'Google',
  key => 'digits-characters.apps.googleusercontent.com',
  secret => 'some characters',
  scope => 'email',
  on_finished => reference_to_a_function_that_deals_with_the_account,
  redirect_uri => 'http://syllabus.test.example.com',    # I added this 
line but it has no use
}

When I click on the authentication button, I got:
Error: invalid_request
Invalid parameter value for redirect_uri: Non-public domains not allowed

> Request Details
# Everything else is good except
redirect_uri=http://auth.syllabus.test/auth/google/callback

I changed and saved 'Authorized redirect URIs' in Google Cloud Platform, 
but redirect_uri never updated accordingly. I tried to modify a lot 
built-in files (Auth.pm, OAuth.pm, OAuth2.pm, Google.pm etc.) containing 
$callback/$redirect_uri/$callback_path etc., but none of them works.

Does anyone no how I can modify redirect_uri?

Sincerely,

Ni

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to