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

Oauth認証に対応 #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Oauth認証に対応 #7

wants to merge 6 commits into from

Conversation

ymarufs21
Copy link

Issue

概要

  • 認証方式に応じた設定を作成
    • OAuthではaccess_tokenとserver_urlをもとにコネクションを作成

@ymarufs21 ymarufs21 self-assigned this Oct 31, 2022
@ymarufs21 ymarufs21 requested a review from kekekenta October 31, 2022 09:11
@kekekenta kekekenta requested a review from d-hrs November 10, 2022 04:37
ConnectorConfig config = new ConnectorConfig();
config.setUsername(pluginTask.getUsername().get());
config.setPassword(pluginTask.getPassword().get() + pluginTask.getSecurityToken().get());
config.setAuthEndpoint(pluginTask.getAuthEndPoint().get() + pluginTask.getApiVersion());
Copy link
Member

Choose a reason for hiding this comment

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

In original code, auth endpoint has suffix "/".

config.setAuthEndpoint(pluginTask.getAuthEndPoint() + pluginTask.getApiVersion() + "/");

https://github.com/trocco-io/embulk-output-sf_bulk_api/pull/7/files#diff-69a8326a0108a38b658e5dd88c52994daca3cf96f17893353797c427a4bfdce2L63

No need to have the suffix "/"?

@chikamura
Copy link

@d-hrs

Both the user password and the oauth authentication method have been verified, could you please review this PR.

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.

3 participants