2024-03-30 14:58:47 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package memos.store;
|
|
|
|
|
|
|
|
option go_package = "gen/store";
|
|
|
|
|
|
|
|
message IdentityProviderConfig {
|
2024-04-13 02:55:40 +08:00
|
|
|
oneof config {
|
|
|
|
OAuth2Config oauth2 = 1;
|
2024-03-30 14:58:47 +08:00
|
|
|
}
|
2024-04-13 02:55:40 +08:00
|
|
|
}
|
2024-03-30 14:58:47 +08:00
|
|
|
|
2024-04-13 02:55:40 +08:00
|
|
|
message FieldMapping {
|
|
|
|
string identifier = 1;
|
|
|
|
string display_name = 2;
|
|
|
|
string email = 3;
|
|
|
|
}
|
2024-03-30 14:58:47 +08:00
|
|
|
|
2024-04-13 02:55:40 +08:00
|
|
|
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;
|
2024-03-30 14:58:47 +08:00
|
|
|
}
|