Google Cloud Endpoints + Firebase Auth: method_info is not set

后端 未结 4 1733
一整个雨季
一整个雨季 2021-01-15 17:15

So I am running the sample code provided by Google:

package com.neat.backend;
/**
 * An endpoint class we are exposing
 */
@Api(
        name = \"myApi\",
           


        
4条回答
  •  不知归路
    2021-01-15 17:32

    It took me a while and a bit of debugging to realize that the filter that is supposed to inject method_info was not being fired.

    I could fix it by modifying the mapping in web.xml adding the following dispatcher tags:

    
        endpoints-api-configuration
        EndpointsServlet
        REQUEST
        INCLUDE
        FORWARD
    
    

提交回复
热议问题