[OAuth]タブのフィールド | 値の例 |
[Authorization URI(認可URI)] | https://login.salesforce.com/services/oauth2/authorize |
[AccessToken URI(アクセストークンURI)] | https://login.salesforce.com/services/oauth2/token |
[Using Processors(プロセッサーの使用)]チェックボックスの下のテキストフィールド | <Authorization> <ResponseMsgStyle>RAWBODY</ResponseMsgStyle> <AuthorizationProcessors> <AuthorizationProcessor> document.getElementById('username').value='test@gmail.com'; document.getElementById('password').value='xxxxxx'; document.getElementById('Login').click(); </AuthorizationProcessor> </AuthorizationProcessors> <TokenProcessor> var pattern=/\?code=.+'/i; var ans = pattern.exec(MessageValue); if(ans.index>0){MessageValue = "{code:" + ans[0].substring(6,ans[0].length-1)+"}";} </TokenProcessor> </Authorization> |