@@ -42,6 +42,9 @@ public class OAuth2Configuration implements Buildable<OAuth2Configuration> {
4242 @ JsonMerge (OptBoolean .FALSE )
4343 public List <URI > authorizedRedirectURLs = new ArrayList <>();
4444
45+ @ JsonMerge (OptBoolean .FALSE )
46+ public List <URI > authorizedResourceUris = new ArrayList <>();
47+
4548 public Oauth2AuthorizedURLValidationPolicy authorizedURLValidationPolicy = Oauth2AuthorizedURLValidationPolicy .ExactMatch ;
4649
4750 public ClientAuthenticationPolicy clientAuthenticationPolicy ;
@@ -94,6 +97,7 @@ public OAuth2Configuration() {
9497 public OAuth2Configuration (OAuth2Configuration other ) {
9598 this .authorizedOriginURLs .addAll (other .authorizedOriginURLs );
9699 this .authorizedRedirectURLs .addAll (other .authorizedRedirectURLs );
100+ this .authorizedResourceUris .addAll (other .authorizedResourceUris );
97101 this .authorizedURLValidationPolicy = other .authorizedURLValidationPolicy ;
98102 this .clientAuthenticationPolicy = other .clientAuthenticationPolicy ;
99103 this .clientId = other .clientId ;
@@ -134,6 +138,7 @@ public boolean equals(Object o) {
134138 requireRegistration == that .requireRegistration &&
135139 Objects .equals (authorizedOriginURLs , that .authorizedOriginURLs ) &&
136140 Objects .equals (authorizedRedirectURLs , that .authorizedRedirectURLs ) &&
141+ Objects .equals (authorizedResourceUris , that .authorizedResourceUris ) &&
137142 Objects .equals (authorizedURLValidationPolicy , that .authorizedURLValidationPolicy ) &&
138143 Objects .equals (clientAuthenticationPolicy , that .clientAuthenticationPolicy ) &&
139144 Objects .equals (clientId , that .clientId ) &&
@@ -163,12 +168,13 @@ public URI getFirstAuthorizedRedirectURLIgnoringPatterns() {
163168
164169 @ Override
165170 public int hashCode () {
166- return Objects .hash (authorizedOriginURLs , authorizedRedirectURLs , authorizedURLValidationPolicy , clientAuthenticationPolicy , clientId , clientSecret , consentMode , debug , deviceVerificationURL , enabledGrants , generateRefreshTokens , logoutBehavior , logoutURL , providedScopePolicy , proofKeyForCodeExchangePolicy , relationship , requireClientAuthentication , requireRegistration , scopeHandlingPolicy , unknownScopePolicy );
171+ return Objects .hash (authorizedOriginURLs , authorizedRedirectURLs , authorizedResourceUris , authorizedURLValidationPolicy , clientAuthenticationPolicy , clientId , clientSecret , consentMode , debug , deviceVerificationURL , enabledGrants , generateRefreshTokens , logoutBehavior , logoutURL , providedScopePolicy , proofKeyForCodeExchangePolicy , relationship , requireClientAuthentication , requireRegistration , scopeHandlingPolicy , unknownScopePolicy );
167172 }
168173
169174 public void normalize () {
170175 removeEmpty (authorizedOriginURLs );
171176 removeEmpty (authorizedRedirectURLs );
177+ removeEmpty (authorizedResourceUris );
172178 clientId = trim (clientId );
173179 clientSecret = trim (clientSecret );
174180 }
0 commit comments