adutra commented on code in PR #2634:
URL: https://github.com/apache/polaris/pull/2634#discussion_r2382325469


##########
runtime/service/src/main/java/org/apache/polaris/service/auth/internal/service/OAuthError.java:
##########
@@ -16,21 +16,25 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.polaris.service.auth;
 
-import jakarta.annotation.Nullable;
+package org.apache.polaris.service.auth.internal.service;
 
-/**
- * This is a union of configuration settings of all token brokers.
- *
- * @see TokenBrokerFactory
- */
-public interface TokenBrokerFactoryConfig {
-  @Nullable
-  String file();
+public enum OAuthError {
+  invalid_request("The request is invalid"),

Review Comment:
   In fact, these are error codes defined in the RFC: 
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
   Since the enum constants are included as-is in the response, I believe we 
should not modify them.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to