com.google.api.server.spi.config
Annotation Type ApiAuth
-
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ApiAuthAnnotation for API authentication configuration.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description AnnotationBooleanallowCookieAuthAllows cookie authentication to be used for the API.java.lang.String[]blockedRegionsA 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 totruewill 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
-
-