Class LoginRequirement (1.13.0)

LoginRequirement(value)

Methods to restrict access to a URL based on login status.

Enums

Name Description
LOGIN_UNSPECIFIED Not specified. `LOGIN_OPTIONAL` is assumed.
LOGIN_OPTIONAL Does not require that the user is signed in.
LOGIN_ADMIN If the user is not signed in, the `auth_fail_action` is taken. In addition, if the user is not an administrator for the application, they are given an error message regardless of `auth_fail_action`. If the user is an administrator, the handler proceeds.
LOGIN_REQUIRED If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken.