|
| THREADSAFE = True |
|
| THREADSAFE = False |
|
Trivial implementation of the UserService.
def google.appengine.api.user_service_stub.UserServiceStub.__init__ |
( |
|
self, |
|
|
|
login_url = _DEFAULT_LOGIN_URL , |
|
|
|
logout_url = _DEFAULT_LOGOUT_URL , |
|
|
|
service_name = 'user' , |
|
|
|
auth_domain = _DEFAULT_AUTH_DOMAIN , |
|
|
|
request_data = None |
|
) |
| |
Initializer.
Args:
login_url: String containing the URL to use for logging in.
logout_url: String containing the URL to use for logging out.
service_name: Service name expected for all calls.
auth_domain: The authentication domain for the service e.g. "gmail.com".
request_data: A apiproxy_stub.RequestData instance used to look up state
associated with the request that generated an API call.
Note: Both the login_url and logout_url arguments must contain one format
parameter, which will be replaced with the continuation URL where the user
should be redirected after log-in or log-out has been completed.
def google.appengine.api.user_service_stub.UserServiceStub.SetOAuthUser |
( |
|
self, |
|
|
|
email = _OAUTH_EMAIL , |
|
|
|
domain = _OAUTH_AUTH_DOMAIN , |
|
|
|
user_id = _OAUTH_USER_ID , |
|
|
|
is_admin = False , |
|
|
|
scopes = None , |
|
|
|
client_id = _OAUTH_CLIENT_ID |
|
) |
| |
Set test OAuth user.
Determines what user is returned by requests to GetOAuthUser.
Args:
email: Email address of oauth user. None indicates that no oauth user
is authenticated.
domain: Domain of oauth user.
user_id: User ID of oauth user.
is_admin: Whether the user is an admin.
scopes: List of scopes that user is authenticated against.
client_id: Client ID of the OAuth2 request
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/api/user_service_stub.py