OAUTH Application API, gRPC: ApplicationService.Create
Creates an OAuth application in the specified organization.
gRPC request
rpc Create (CreateApplicationRequest) returns (operation.Operation)
CreateApplicationRequest
{
"name": "string",
"organization_id": "string",
"description": "string",
"group_claims_settings": {
"group_distribution_type": "GroupDistributionType"
},
"client_grant": {
"client_id": "string",
"authorized_scopes": [
"string"
]
},
"labels": "map<string, string>"
}
Request to create a OAuth application.
|
Field |
Description |
|
name |
string Required field. Name of the OAuth application. |
|
organization_id |
string Required field. ID of the organization to create a OAuth application in. |
|
description |
string Description of the OAuth application. |
|
group_claims_settings |
Settings of the group claims |
|
client_grant |
Connection to the OAuth client with specified scopes |
|
labels |
object (map<string, string>) Resource labels as key:value pairs. |
GroupClaimsSettings
Settings of the group claims
|
Field |
Description |
|
group_distribution_type |
enum GroupDistributionType Represents current distribution type of the groups. I.e. which groups are visible for the application users.
|
ClientGrant
Represents connection to the OAuth client with specified scopes
|
Field |
Description |
|
client_id |
string Required field. OAuth client id |
|
authorized_scopes[] |
string List of authorized client scopes by the application |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"application_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"name": "string",
"organization_id": "string",
"description": "string",
"group_claims_settings": {
"group_distribution_type": "GroupDistributionType"
},
"client_grant": {
"client_id": "string",
"authorized_scopes": [
"string"
]
},
"status": "Status",
"labels": "map<string, string>",
"created_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateApplicationMetadata
Metadata for the ApplicationService.Create operation.
|
Field |
Description |
|
application_id |
string ID of the OAuth application that is being created. |
Application
An OAuth application resource.
|
Field |
Description |
|
id |
string ID of the application. |
|
name |
string Name of the application. |
|
organization_id |
string ID of the organization that the application belongs to. |
|
description |
string Description of the application. 0-256 characters long. |
|
group_claims_settings |
Settings of the group claims |
|
client_grant |
Represents current connection to the OAuth client with specified scopes |
|
status |
enum Status Current status of the application.
|
|
labels |
object (map<string, string>) Resource labels as |
|
created_at |
Creation timestamp. |
|
updated_at |
Modification timestamp. |
GroupClaimsSettings
Settings of the group claims
|
Field |
Description |
|
group_distribution_type |
enum GroupDistributionType Represents current distribution type of the groups. I.e. which groups are visible for the application users.
|
ClientGrant
Represents connection to the OAuth client with specified scopes
|
Field |
Description |
|
client_id |
string Required field. OAuth client id |
|
authorized_scopes[] |
string List of authorized client scopes by the application |