oauth2: add support for resource params in authorization request (#15147)

Signed-off-by: Sudeepto Roy <sudeepto.roy@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ 471c6095ed91697227796002df51a2008970519c
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent 8e77eead69
commit e99f35d4aa
  1. 6
      envoy/extensions/filters/http/oauth2/v3alpha/oauth.proto
  2. 6
      envoy/extensions/filters/http/oauth2/v4alpha/oauth.proto

@ -41,7 +41,7 @@ message OAuth2Credentials {
// OAuth config
//
// [#next-free-field: 10]
// [#next-free-field: 11]
message OAuth2Config {
// Endpoint on the authorization server to retrieve the access token from.
config.core.v3.HttpUri token_endpoint = 1;
@ -76,6 +76,10 @@ message OAuth2Config {
// defaults to "user" scope.
// OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;
// Optional resource parameter for authorization request
// RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;
}
// Filter config.

@ -45,7 +45,7 @@ message OAuth2Credentials {
// OAuth config
//
// [#next-free-field: 10]
// [#next-free-field: 11]
message OAuth2Config {
option (udpa.annotations.versioning).previous_message_type =
"envoy.extensions.filters.http.oauth2.v3alpha.OAuth2Config";
@ -83,6 +83,10 @@ message OAuth2Config {
// defaults to "user" scope.
// OAuth RFC https://tools.ietf.org/html/rfc6749#section-3.3
repeated string auth_scopes = 9;
// Optional resource parameter for authorization request
// RFC: https://tools.ietf.org/html/rfc8707
repeated string resources = 10;
}
// Filter config.

Loading…
Cancel
Save