0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

データローダとMFA

0
Last updated at Posted at 2023-08-17

My password is not being decrypted.

Batch message is 14:40:12.102 [extractCase] ERROR com.salesforce.dataloader.security.EncryptionAesUtil - Fail to decrypt message: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

image.png

I had my Salesforce admin turn off MFA for my logon and it now works. Looks like MFA is turned on automatically when you change your password.

this session is not vaild for use with the api

これが同じような質問だと思います。
あんまり、気の進まない回答になっているように感じました。

https://developer.salesforce.com/forums/?id=9062I000000DOcwQAG

Have you also tried adding the 6-digit MFA security code at the end of your password?

(URLUtil.java:88) - Could not find web browser

Copy the URL shown below and paste it in your browser if the browser is not launched automatically.

URL to copy:
:

:::note

process-conf.xmlのBean タグの中で、sfdc.oauth.loginfrombrowser を追加し、
false を指定することで確認コード要求を抑止することができるようです。

<beans> 
 ... 
 <map> 
 ... 
 <entry key="sfdc.oauth.loginfrombrowser" value="false"/> 
 </map> 
 </property> 
 </bean> 

image.png

ECA(外部クライアントアプリ) を介した OAuth 2.0 JWT ベアラーフローは既にヘッドレスで動作しており、どちらの非推奨化の影響も受けず、今日からでも使用できると思います。スクリプトは登録済みの証明書で JWT に署名し、それをアクセストークンと交換し、そのトークンをユーザー名/パスワードの代わりにsfdc.oauth.accesstoken+を介してデータローダーに渡しますsfdc.endpoint=。ネイティブのクライアント認証情報サポートほど洗練されてはいませんが、当面は無人/スケジュールされたジョブの実行を妨げません。

Data Loader CLI の OAuth Web Server Flow のサポートは、対話型での使用を目的としています。

ヘッドレスモードで使用する場合は、Data Loader CLIでパスワード認証(ユーザー名とパスワードの指定)を設定する必要があります。SOAP APIのlogin()関数が廃止されるため、パスワード認証の代替として、今年後半にOAuth JWT Bearer Flowのサポートを追加する予定です。

外部クライアントアプリは、グローバルOAuth設定ファイルの証明書フィールドを使用して、OAuth 2.0 JSON Web Token(JWT)ベアラーフローをサポートできます。JWTフローは、サーバーが情報を交換するたびにインタラクティブにログインすることなく、サーバーがデータにアクセスすることを承認します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?