Skip to content

Commit

Permalink
Add enums for client authentication, pkce, and URL validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhorowitz committed Nov 19, 2024
1 parent f6bae8f commit 153ac87
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1488,10 +1488,30 @@ message ListOAuthAppsResponse {
repeated string ids = 1;
}

enum ClientAuthentication {
CLIENT_AUTHENTICATION_UNSPECIFIED = 0;
CLIENT_AUTHENTICATION_REQUIRED = 1;
CLIENT_AUTHENTICATION_NOT_REQUIRED = 2;
CLIENT_AUTHENTICATION_NOT_REQUIRED_WHEN_USING_PKCE = 3;
}

enum PKCE {
PKCE_UNSPECIFIED = 0;
PKCE_REQUIRED = 1;
PKCE_NOT_REQUIRED = 2;
PKCE_NOT_REQUIRED_WHEN_USING_CLIENT_AUTHENTICATION = 3;
}

enum URLValidation {
URL_VALIDATION_UNSPECIFIED = 0;
URL_VALIDATION_EXACT_MATCH = 1;
URL_VALIDATION_ALLOW_WILDCARDS = 2;
}

message OAuthConfig {
string client_authentication = 1;
string pkce = 2;
string url_validation = 3;
ClientAuthentication client_authentication = 1;
PKCE pkce = 2;
URLValidation url_validation = 3;
repeated string origin_uris = 4;
repeated string redirect_uris = 5;
string logout_uri = 6;
Expand Down

0 comments on commit 153ac87

Please sign in to comment.