Feature Request P2
Status Update
Comments
pv...@google.com <pv...@google.com> #3
This is not only useful for IP addresses, but also for many other resources. I understand that names are currently used as identifiers, so this request is probably not trivial to implement. Maybe distinguishing between a (numeric, automatically generated) identifier and a (textual) label is the way to go?
Description
Add a "throws ServiceException" to the Authenticator.authenticate interface method.
* What is the desired behavior of the feature?
To allow an Authenticator to reject a request with an error (Forbidden or UnauthorizedException) if the authentication process cannot be completed successfully.
* If relevant, why are current approaches or workarounds insufficient?
The current approach is to not use Endpoints Authenticator and do the authentication process inside each @ApiMethod.
* If relevant, what new use cases will this feature will enable?
This will remove a lot of boilerplate code from the Api methods.
Please add any labels that assist in defining the issue (such as Language
or Component).
Java, Cloud Endpoints