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

Supports authencation with service account on Google Compute Engine. #2

Merged

Conversation

yugui
Copy link
Contributor

@yugui yugui commented Feb 5, 2014

Adds a new configuration option "auth_method" to choose

authentication method.

Hello Tagomoris,
This is the patch I talked about. Since google-api-client gem 0.7.1 was shipped as a stable version, you can merge this change into master instead of keeping it in a separated branch if you want.

Adds a new configuration option "auth_method" to choose
authentication method.
@@ -113,13 +118,29 @@ class BigQueryOutput < BufferedOutput
def initialize
super
require 'google/api_client'
require 'google/api_client/client_secrets'
require 'google/api_client/auth/installed_app'
case @auth_method
Copy link
Contributor

Choose a reason for hiding this comment

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

@auth_method is not initialized yet here, isn't it?
Plugin#initialize runs before #configure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Maybe it's better to keep the code simple rather than require in configure().

@tagomoris
Copy link
Contributor

LGTM!
Please update README.md w/ auth_method compute_engine.

@yugui
Copy link
Contributor Author

yugui commented Feb 6, 2014

Ah, OK.
Done.

tagomoris added a commit that referenced this pull request Feb 6, 2014
Supports authencation with service account on Google Compute Engine.
@tagomoris tagomoris merged commit c4362d8 into fluent-plugins-nursery:master Feb 6, 2014
@tagomoris
Copy link
Contributor

Thank you for contribution.
Merged and released v0.0.3!

@yugui yugui deleted the feature/auth-compute-engine branch February 7, 2014 03:48
@tracyliuzw tracyliuzw mentioned this pull request Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants