Skip to content

Commit

Permalink
🔄 Synced file(s) with polarsignals/polarsignals
Browse files Browse the repository at this point in the history
  • Loading branch information
manojVivek committed Feb 15, 2024
1 parent 2f963ad commit ebe301e
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
92 changes: 92 additions & 0 deletions polarsignals/organization/v1alpha1/organization.proto
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,32 @@ service OrganizationService {
};
}

// EnableSSO enables SSO for the organization with the given ID.
rpc EnableSSO(EnableSSORequest) returns (EnableSSOResponse) {
option (google.api.http) = {
post: "/v1/{id}/enable-sso"
body: "*"
};
}

// DisableSSO disables SSO for the organization with the given ID.
rpc DisableSSO(DisableSSORequest) returns (DisableSSOResponse) {
option (google.api.http) = {
post: "/v1/{id}/disable-sso"
body: "*"
};
}

// GetSSOSettings returns the SSO settings for the organization with the given ID.
rpc GetSSOSettings(GetSSOSettingsRequest) returns (GetSSOSettingsResponse) {
option (google.api.http) = {get: "/v1/{id}/sso-settings"};
}

// GetSSOConnectorId returns the SSO login URL for the organization with the given organization identifier.
rpc GetSSOConnectorId(GetSSOConnectorIdRequest) returns (GetSSOConnectorIdResponse) {
option (google.api.http) = {get: "/v1/sso-login-url/{organization_identifier}"};
}

}

// Organization represents an organization.
Expand Down Expand Up @@ -258,3 +284,69 @@ message InviteUsersViaEmailRequest {

// InviteUsersViaEmailResponse is the response for the InviteUsersViaEmail method.
message InviteUsersViaEmailResponse {}

// EnableSSORequest is the request for the EnableSSO method.
message EnableSSORequest {
// The ID of the organization.
string id = 1;
// The SSO settings.
SSOSettings sso_settings = 2;
}

// EnableSSOResponse is the response for the EnableSSO method.
message EnableSSOResponse {}

// DisableSSORequest is the request for the DisableSSO method.
message DisableSSORequest {
// The ID of the organization.
string id = 1;
}

// DisableSSOResponse is the response for the DisableSSO method.
message DisableSSOResponse {}

// GetSSOSettingsRequest is the request for the GetSSOSettings method.
message GetSSOSettingsRequest {
// The ID of the organization.
string id = 1;
}

// GetSSOSettingsResponse is the response for the GetSSOSettings method.
message GetSSOSettingsResponse {
// The SSO settings.
SSOSettings sso_settings = 1;
}

// SSOSettings represents the SSO settings.
message SSOSettings {
// Organization identifier
string organization_identifier = 1;
// Type
string sso_type = 2;
oneof sso_config {
// OIDC configuration
OIDCConfig oidc_config = 3;
}
}

// OIDCConfig represents the OIDC configuration.
message OIDCConfig {
// The issuer URL.
string issuer_url = 1;
// The client ID.
string client_id = 2;
// The client secret.
string client_secret = 3;
}

// GetSSOConnectorIdRequest is the request for the GetSSOConnectorId method.
message GetSSOConnectorIdRequest {
// The organization identifier.
string organization_identifier = 1;
}

// GetSSOConnectorIdResponse is the response for the GetSSOConnectorId method.
message GetSSOConnectorIdResponse {
// The Connector Id.
string connector_id = 1;
}
2 changes: 2 additions & 0 deletions polarsignals/user/v1alpha1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ message User {
google.protobuf.Timestamp updated_at = 6;
// the feature flags enabled for the user.
repeated string feature_flags = 7;
// Auth provider of the user.
string auth_provider = 8;
}

// GetSelfRequest is the request for the GetSelf method.
Expand Down

0 comments on commit ebe301e

Please sign in to comment.