com.google.api.server.spi.config
Annotation Type ApiAuth
-
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ApiAuth
Annotation for API authentication configuration.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description AnnotationBoolean
allowCookieAuth
Allows cookie authentication to be used for the API.java.lang.String[]
blockedRegions
A list of ISO region codes to block.
-
-
-
Element Detail
-
allowCookieAuth
public abstract AnnotationBoolean allowCookieAuth
Allows cookie authentication to be used for the API. By default, API methods do not allow cookie authentication, and require the use of OAuth2. Setting this field totrue
will allow cookies to be used to access the API, with potentially dangerous results. Please be very cautious in enabling this setting, and make sure to require appropriate XSRF tokens to protect your API.- Default:
- com.google.api.server.spi.config.AnnotationBoolean.UNSPECIFIED
-
-