chore: add idp workspace setting

This commit is contained in:
Steven
2024-08-05 23:43:59 +08:00
parent f9e5978a08
commit e53ced8996
19 changed files with 1022 additions and 151 deletions

37
proto/store/idp.proto Normal file
View File

@ -0,0 +1,37 @@
syntax = "proto3";
package slash.store;
option go_package = "gen/store";
message IdentityProvider {
string name = 1;
enum Type {
TYPE_UNSPECIFIED = 0;
OAUTH2 = 1;
}
Type type = 2;
IdentityProviderConfig config = 3;
}
message IdentityProviderConfig {
oneof config {
OAuth2Config oauth2_config = 1;
}
message FieldMapping {
string email = 1;
string display_name = 2;
}
message OAuth2Config {
string client_id = 1;
string client_secret = 2;
string auth_url = 3;
string token_url = 4;
string user_info_url = 5;
repeated string scopes = 6;
FieldMapping field_mapping = 7;
}
}