Skip to content
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

Merged
merged 3 commits into from
Aug 30, 2018
Merged

Conversation

shinfan
Copy link
Collaborator

@shinfan 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
@shinfan shinfan requested review from bochunz and wora August 29, 2018 23:30
@shinfan
Copy link
Collaborator Author

shinfan commented Aug 29, 2018

@julianshaoliu FYI

@shinfan shinfan changed the title Support QuotaUser/QuotaProject/IAMAuthToken Support QuotaUser/Project and IAMAuthToken Aug 29, 2018
const (
headerAuth = "authorization"
headerApiKey = "X-Goog-Api-Key"
headerQuotaUser = "X-Goog-QuotaUser"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quota-User

Copy link
Collaborator Author

@shinfan shinfan Aug 30, 2018

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.

Copy link
Collaborator Author

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.

// 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
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@shinfan
Copy link
Collaborator Author

shinfan commented Aug 30, 2018

@wora PTAL

@wora wora merged commit 524e4ee into google:master Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants