Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. // main IDP configuration URLs
  2. protected $openidconnect = true; // Google supports OpenID-Connect
  3. protected $authTokenUrl = 'https://accounts.google.com/o/oauth2/auth';
  4. protected $accessTokenUrl= 'https://www.googleapis.com/oauth2/v3/token';
  5. // I fail to get Google People OpenIdConnect API to work :(
  6. //protected $identityApiUrl= 'https://www.googleapis.com/plus/v1/people/me/OpenIdConnect';
  7. protected $identityApiUrl= 'https://www.googleapis.com/oauth2/v1/userinfo';
  8.  
  9. // OAuth2 action-1: getAuthUrl($state) build authorization token url
  10. protected $scopes = ['openid','email','profile']; // request authentication & email
  11.  
  12. [apache@vz-bzh GeoToBe]$ curl -X GET -H "Authorization: Bearer ya29.5ABSl_75eP_zYFho_E-wVjPlZJc1XfY398HZqJjMxvRxBEWteLKZwNeh2v0BPwWuoH1iLpESeBQvFw" https://www.googleapis.com/plus/v1/people/me/openIdConnect
  13. {
  14. "error": {
  15. "errors": [
  16. {
  17. "domain": "usageLimits",
  18. "reason": "accessNotConfigured",
  19. "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
  20. "extendedHelp": "https://console.developers.google.com"
  21. }
  22. ],
  23. "code": 403,
  24. "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement