GoogleCloudPlatform / go-endpoints

Cloud Endpoints for Go
https://go-endpoints.appspot.com
Apache License 2.0
255 stars 56 forks source link

Allow third party auth provider #122

Closed zboralski closed 2 years ago

zboralski commented 8 years ago

Example use :

var myProvider = &endpoints.AuthProviderConfig{
    IssuerID: "https://example.com",
    JWKSURI: "https://www.googleapis.com/service_accounts" +
        "/v1/metadata/raw/APPID@appspot.gserviceaccount.com",
    UserInfoEndpoint: "https://example.com/oauth2/v1/tokeninfo",
    ScopesSupported: []string{
        "openid",
        "email",
        "profile",
    },
}

func init() {
    endpoints.AuthProvider = myProvider
}