github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/user/user_service.proto (about)

     1  syntax = "proto2";
     2  option go_package = "user";
     3  
     4  package appengine;
     5  
     6  message UserServiceError {
     7    enum ErrorCode {
     8      OK = 0;
     9      REDIRECT_URL_TOO_LONG = 1;
    10      NOT_ALLOWED = 2;
    11      OAUTH_INVALID_TOKEN = 3;
    12      OAUTH_INVALID_REQUEST = 4;
    13      OAUTH_ERROR = 5;
    14    }
    15  }
    16  
    17  message CreateLoginURLRequest {
    18    required string destination_url = 1;
    19    optional string auth_domain = 2;
    20    optional string federated_identity = 3 [default = ""];
    21  }
    22  
    23  message CreateLoginURLResponse {
    24    required string login_url = 1;
    25  }
    26  
    27  message CreateLogoutURLRequest {
    28    required string destination_url = 1;
    29    optional string auth_domain = 2;
    30  }
    31  
    32  message CreateLogoutURLResponse {
    33    required string logout_url = 1;
    34  }
    35  
    36  message GetOAuthUserRequest {
    37    optional string scope = 1;
    38  
    39    repeated string scopes = 2;
    40  }
    41  
    42  message GetOAuthUserResponse {
    43    required string email = 1;
    44    required string user_id = 2;
    45    required string auth_domain = 3;
    46    optional string user_organization = 4 [default = ""];
    47    optional bool is_admin = 5 [default = false];
    48    optional string client_id = 6 [default = ""];
    49  
    50    repeated string scopes = 7;
    51  }
    52  
    53  message CheckOAuthSignatureRequest {
    54  }
    55  
    56  message CheckOAuthSignatureResponse {
    57    required string oauth_consumer_key = 1;
    58  }