-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Filebeat][httpjson] httpjson oauth2 authentication mechanism for sal…
…esforce events (#29087) * Add grant-type: passoword in httpjson oauth2 * refactor code and add new properties tests in config_test.go * Add grant_type: password in oAuth2ProviderDefault * Update CHANGELOG.next.asciidoc * update input-httpjson.asciidoc with new extended httpjson authentication method * add comment for authstyleparam variable * update user dummy value in the doc * Update input-httpjson.asciidoc - provider should be default only for user-passowrd method * refactor code and add new properties tests in config_test.go * Add grant_type: password in oAuth2ProviderDefault Co-authored-by: Sunny Chaudhari <[email protected]>
- Loading branch information
1 parent
fab2197
commit 008182a
Showing
4 changed files
with
111 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,19 @@ filebeat.inputs: | |
request.url: http://localhost | ||
---- | ||
|
||
["source","yaml",subs="attributes"] | ||
---- | ||
filebeat.inputs: | ||
- type: httpjson | ||
auth.oauth2: | ||
client.id: 12345678901234567890abcdef | ||
client.secret: abcdef12345678901234567890 | ||
token_url: http://localhost/oauth2/token | ||
user: [email protected] | ||
password: P@$$W0₹D | ||
request.url: http://localhost | ||
---- | ||
|
||
[[input-state]] | ||
==== Input state | ||
|
||
|
@@ -265,6 +278,22 @@ except if using `google` as provider. Required for providers: `default`, `azure` | |
The client secret used as part of the authentication flow. It is always required | ||
except if using `google` as provider. Required for providers: `default`, `azure`. | ||
|
||
[float] | ||
==== `auth.oauth2.user` | ||
|
||
The user used as part of the authentication flow. It is required for authentication | ||
- grant type password. It is only available for provider `default`. | ||
|
||
[float] | ||
==== `auth.oauth2.password` | ||
|
||
The password used as part of the authentication flow. It is required for authentication | ||
- grant type password. It is only available for provider `default`. | ||
|
||
NOTE: user and password are required for grant_type password. If user and | ||
password is not used then it will automatically use the `token_url` and | ||
`client credential` method. | ||
|
||
[float] | ||
==== `auth.oauth2.scopes` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters