-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support QuotaUser/Project and IAMAuthToken #48
Conversation
shinfan
commented
Aug 29, 2018
- Attach fields into headers in both HTTP and gRPC
- Refactor the gRPC token source code for better readability
- Move HTTP transport code into internal/http.go
- Attach fields into headers in both HTTP and gRPC - Refactor the gRPC token source code for better readability - Move HTTP transport code into internal/http.go
@julianshaoliu FYI |
go/sgauth/internal/const.go
Outdated
const ( | ||
headerAuth = "authorization" | ||
headerApiKey = "X-Goog-Api-Key" | ||
headerQuotaUser = "X-Goog-QuotaUser" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quota-User
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go/system-parameters documents it as "X-Goog-QuotaUser", I will correct the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest version is already corrected to Quota-User. It is just not released yet.
go/sgauth/settings.go
Outdated
// End-user OAuth Flow handler that redirects the user to the given URL | ||
// and returns the token. | ||
OAuthFlowHandler func(url string) (token string, err error) | ||
|
||
// The state string used for 3LO session verification. | ||
State string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document most features as Unimplemented even you write the code. Many features don't exist yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Domain-wide delegation and State are now marked as unimplmented since I have not implemented the code yet.
I assume quota user and IAM auth token are not available for public. Please let me know if I miss anything.
@wora PTAL |