Facebook authentication Using Google cloud API endpoints returning 401 error (Unauthorized)

Not applicable
 
0 2 472
2 REPLIES 2

@Murugank , Welcome to Apigee Community 🙂

Are you using Apigee ? Can you please provide more context to your question to better understand your issue? Have you created any proxy for same in Apigee Edge?

@Anil Sagar,

Thanks for your kind response.

I am using google cloud endpoinds. The google cloud endpoinds accepting only google authorized request.Not accepting facebook authorized request.

Return error

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 400.

Then another error 401

I am already login via facebook. But return User must be login.

com.google.a.a.b.b.c:401Unauthorized

{

"code":401,

"errors":[

{

"domain":"global",

"location":"Authorization",

"locationType":"header",

"message":"Invalid token.",

"reason":"required"

}

],

"message":"Invalid token."

com.google.a.a.b.b.c:401Unauthorized

}

Please help me someone.