Skip to content

Commit

Permalink
APP-6993: Deprecate legacy auth app apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jr22 committed Jan 9, 2025
1 parent 3f0b40a commit c3ca7aa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions proto/viam/app/v1/end_user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ service EndUserService {
rpc AcceptLegal(AcceptLegalRequest) returns (AcceptLegalResponse);

// Allows users to register third party auth applications using Viam linked to the indicated organization
rpc RegisterAuthApplication(RegisterAuthApplicationRequest) returns (RegisterAuthApplicationResponse);
rpc RegisterAuthApplication(RegisterAuthApplicationRequest) returns (RegisterAuthApplicationResponse) {
option deprecated = true;
};

// Allows users to update their third party auth applications
rpc UpdateAuthApplication(UpdateAuthApplicationRequest) returns (UpdateAuthApplicationResponse);
rpc UpdateAuthApplication(UpdateAuthApplicationRequest) returns (UpdateAuthApplicationResponse) {
option deprecated = true;
};

// Allows users to get the config for their third party auth applications
rpc GetAuthApplication(GetAuthApplicationRequest) returns (GetAuthApplicationResponse);
rpc GetAuthApplication(GetAuthApplicationRequest) returns (GetAuthApplicationResponse) {
option deprecated = true;
};
}

message IsLegalAcceptedRequest {}
Expand All @@ -34,6 +40,7 @@ message AcceptLegalRequest {}
message AcceptLegalResponse {}

message RegisterAuthApplicationRequest {
option deprecated = true;
string application_name = 1;
string org_id = 2;
repeated string origin_uris = 3;
Expand All @@ -42,12 +49,14 @@ message RegisterAuthApplicationRequest {
}

message RegisterAuthApplicationResponse {
option deprecated = true;
string application_id = 1;
string application_name = 2;
string client_secret = 3;
}

message UpdateAuthApplicationRequest {
option deprecated = true;
string org_id = 1;
string application_id = 2;
string application_name = 3;
Expand All @@ -57,16 +66,19 @@ message UpdateAuthApplicationRequest {
}

message UpdateAuthApplicationResponse {
option deprecated = true;
string application_id = 1;
string application_name = 2;
}

message GetAuthApplicationRequest {
option deprecated = true;
string org_id = 1;
string application_id = 2;
}

message GetAuthApplicationResponse {
option deprecated = true;
string application_id = 1;
string application_name = 2;
string client_secret = 3;
Expand Down

0 comments on commit c3ca7aa

Please sign in to comment.