Search code examples
google-app-enginegogoogle-oauth

Golang App-engine OAuth Authorization


I am implementing an app-engine webapp written in Go that needs user authentication and authorization to access some user data on Google's APIs.

Do I still need to use the goauth2 and gorilla packages to implement authorization or is there some functionality in the "appengine" and "appengine/user" packages that implements Oauthorization natively for app-engine apps? I do not mind going ahead with goauth2, but if there is a better way...


Solution

  • You can use the "appengine/user" package for authentication with OAuth but I'm a fraid that you must implement authorization yourself.
    For OAuth authentication with "appengine/user" package, see https://developers.google.com/appengine/docs/go/oauth/#Go_OAuth_and_App_Engine