-
Notifications
You must be signed in to change notification settings - Fork 5.3k
oauth2 filter: Make OAuth scopes configurable. #14168
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
Changes from all commits
80acc89
c276e54
d26dd3a
1577ed6
47f1fa4
906a91f
94fa8b1
2fdf64a
7c689b9
6549060
5e709f9
c2567ec
657e21f
a7acd87
5381f74
4d9eab9
5e126b9
b64e322
7359ad3
62f1ff4
b3c2071
a18a184
2aa7274
a097339
47598a2
6cca203
a5d64d0
5aef557
b956a6e
e8393a7
9fa051d
ee4cb01
40fe4b8
966e04c
5109f3e
0e05c16
ecf6616
21b9d65
527a144
f4226a4
82fd52b
4625f33
c936cbb
aedc096
897b290
9705b0d
a83fd6f
ab0a563
f9f9f7a
f0efcf4
be36649
6c9c0d9
8da1892
0a33292
e63ec2b
f2cdd88
96ebfcd
9fc7acb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,7 @@ void OAuth2ClientImpl::onSuccess(const Http::AsyncClient::Request&, | |
| const auto response_code = message->headers().Status()->value().getStringView(); | ||
| if (response_code != "200") { | ||
| ENVOY_LOG(debug, "Oauth response code: {}", response_code); | ||
| ENVOY_LOG(debug, "Oauth response body: {}", message->bodyAsString()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm afraid of the amount of data that would be logged here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me clarify this @joaovitor. What is being logged here is the response body of the request to the OAuth provider. This is not the upstream request (to service being proxied in the end). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great @andreyprezotto ... Hope to see this PR merged. |
||
| parent_->sendUnauthorizedResponse(); | ||
| return; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.