Skip to content

Commit d766aa6

Browse files
committed
make GoogleAuth.getAuthToken() public
This allows a custom authenticator to fetch the token.
1 parent e0d8862 commit d766aa6

File tree

1 file changed

+1
-1
lines changed
  • endpoints-framework/src/main/java/com/google/api/server/spi/auth

1 file changed

+1
-1
lines changed

endpoints-framework/src/main/java/com/google/api/server/spi/auth/GoogleAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class GoogleAuth {
6969
static final List<String> SKIP_CLIENT_ID_CHECK_LIST =
7070
ImmutableList.of(Constant.SKIP_CLIENT_ID_CHECK);
7171

72-
static String getAuthToken(HttpServletRequest request) {
72+
public static String getAuthToken(HttpServletRequest request) {
7373
if (request.getAttribute(Attribute.AUTH_TOKEN) == null) {
7474
String token = getAuthTokenFromHeader(request.getHeader(AUTHORIZATION_HEADER));
7575
if (token == null) {

0 commit comments

Comments
 (0)