Skip to content
This repository was archived by the owner on May 13, 2019. It is now read-only.
This repository was archived by the owner on May 13, 2019. It is now read-only.

Iam getting invalid client error. #15

Open

Description

@madhukotagiri

in google play console i created the 1)productname "gplus-quickstart-java-master"
project name also "gplus-quickstart-java-master"
2)given the email id of mine
3)my client_secrets.json file details are below
Client ID: XXXXXXXXXXXXXXXX
Email address :XXXXXXXXXXXXXXXX
Client secret :XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Redirect URIs :http://localhost:8008/oauth2callback
Javascript Origins : http://localhost:8008
iam running on local host port number 8008

myerror dialog url when iam clicking on sign in button is below

https://accounts.google.com/o/oauth2/auth?client_id={{%20CLIENT_ID%20}}&redirect_uri=postmessage&response_type=code%20token%20id_token%20gsession&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.login&access_type=offline&request_visible_actions=http%3A%2F%2Fschemas.google.com%2FAddActivity&cookie_policy=single_host_origin&include_granted_scopes=true&proxy=oauth2relay503561546&origin=http%3A%2F%2Flocalhost%3A8008&state=467093370|0.3151933772&&e=3100077

what was my issue.any thing went wrong please help me

Activity

  1. madhukotagiri commented on Feb 19, 2015

    @madhukotagiri
    Author

    in main method

    public static void main(String[] args) throws Exception {
    Server server = new Server(4567);
    ServletHandler servletHandler = new ServletHandler();
    SessionHandler sessionHandler = new SessionHandler();
    sessionHandler.setHandler(servletHandler);
    server.setHandler(sessionHandler);
    servletHandler.addServletWithMapping(ConnectServlet.class, "/connect");
    servletHandler.addServletWithMapping(DisconnectServlet.class, "/disconnect");
    servletHandler.addServletWithMapping(PeopleServlet.class, "/people");
    servletHandler.addServletWithMapping(MainServlet.class, "/");
    server.start();
    server.join();
    }

    do i need to change the port number from 4567 to 8008
    i tried with 8008 also

  2. gguuss commented on Jul 6, 2015

    @gguuss
    Contributor

    Did you change the client id in client_secrets.json.example to your client ID from the Google APIs console and rename it to client_secrets.json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions