Hi, I have some issues regarding using the client ID for "web application", this since I need to redirect url to the webpage initiate for the Authentication with OAuth2.
I have to different Client Id, one for application where this is running on a server (C#), no issue and the redirect to the localhost works.
But for Web Application (Glassfish using servlet in Java) using the other Client ID for the "web application", this always state "invalid_client", but I don't know the reason.
If I remove the redirect uri and state the same as Client ID and secret used for "Client ID for installed applications", in the web application it is possible and I get a authorization page, but in this case I see the code that manually have to been parsed.
So I can see that the web app work with the first Client ID I created, but not the one created for Web application.
I have tripple-verified that the correct ID is used..
I have also created different web application Client Id's, to see if there was any error.
Also URL Encoded the link, but no different.
I have also used 2 difference samples to go thru if there was anything i missed, but they give the same results.
https://code.google.com/p/google-plus-java-starter/source/browse/#hg%2Fweb-app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fgoogle%2Fapi%2Fsample
On the auth page:
https://accounts.google.com/o/oauth2/auth.. this is what I get
Fel:invalid_client
Please help me out what this issue is all about ..!
Thanks in advance