futurenda / google-auth-id-token-verifier Goto Github PK
View Code? Open in Web Editor NEWGolang port of OAuth2Client.prototype.verifyIdToken from google-auth-library-nodejs
License: MIT License
Golang port of OAuth2Client.prototype.verifyIdToken from google-auth-library-nodejs
License: MIT License
I node.js when doing the verification I can get the user id
const id= ticket.getPayload()['sub'];
but in this library this value does not exists
Because of:
http.DefaultTransport and http.DefaultClient are not available in App Engine. See https://cloud.google.com/appengine/docs/go/urlfetch/
Solution would be to make it possible to parametrize a http.Client param when creating the Verifier object eg. via ClientOptions.
golang.org/x/oauth2/jws is now deprecated.
What is the alternative?
Hello, would it make sense to make it possible for the VerifyIDToken() function allow for giving an empty list of AUDs so that it would just do the JWT verification against the certs and let the app check for the AUDs later on after Decode?
For example, this is how Firebase Admin SDK does it: https://github.com/firebase/firebase-admin-go/blob/master/auth/auth.go#L172
-> you simply call VerifyIDToken() and get a decoded Token info if it verifies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.