mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
feat: Notification providers config (#3212)
* feat: add login check lifetimes to login policy * feat: org features test * feat: debug notificatiaon events * feat: debug notification file/log commands * feat: add requests to proto * feat: add api for debug notification providers file/log * feat: add projection for debug notifiication providers * feat: requests * feat: merge v2 * feat: add settings proto to generate * feat: notifiaction providers * fix: remove unused code * Update iam_converter.go Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -2,11 +2,11 @@ syntax = "proto3";
|
||||
|
||||
import "zitadel/idp.proto";
|
||||
import "zitadel/user.proto";
|
||||
import "zitadel/settings.proto";
|
||||
import "zitadel/object.proto";
|
||||
import "zitadel/options.proto";
|
||||
import "zitadel/org.proto";
|
||||
import "zitadel/policy.proto";
|
||||
import "zitadel/settings.proto";
|
||||
import "zitadel/text.proto";
|
||||
import "zitadel/member.proto";
|
||||
import "zitadel/features.proto";
|
||||
@@ -336,6 +336,28 @@ service AdminService {
|
||||
};
|
||||
}
|
||||
|
||||
// Get file system notification provider
|
||||
rpc GetFileSystemNotificationProvider(GetFileSystemNotificationProviderRequest) returns (GetFileSystemNotificationProviderResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/notification/provider/file";
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "iam.read";
|
||||
};
|
||||
}
|
||||
|
||||
// Get log notification provider
|
||||
rpc GetLogNotificationProvider(GetLogNotificationProviderRequest) returns (GetLogNotificationProviderResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/notification/provider/log";
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "iam.read";
|
||||
};
|
||||
}
|
||||
|
||||
// Returns an organisation by id
|
||||
rpc GetOrgByID(GetOrgByIDRequest) returns (GetOrgByIDResponse) {
|
||||
option (google.api.http) = {
|
||||
@@ -2561,6 +2583,20 @@ message UpdateSMSProviderTwilioTokenResponse {
|
||||
zitadel.v1.ObjectDetails details = 1;
|
||||
}
|
||||
|
||||
//This is an empty request
|
||||
message GetFileSystemNotificationProviderRequest {}
|
||||
|
||||
message GetFileSystemNotificationProviderResponse {
|
||||
zitadel.settings.v1.DebugNotificationProvider provider = 1;
|
||||
}
|
||||
|
||||
//This is an empty request
|
||||
message GetLogNotificationProviderRequest {}
|
||||
|
||||
message GetLogNotificationProviderResponse {
|
||||
zitadel.settings.v1.DebugNotificationProvider provider = 1;
|
||||
}
|
||||
|
||||
// This is an empty request
|
||||
message GetOIDCSettingsRequest {}
|
||||
|
||||
|
@@ -72,6 +72,11 @@ enum SMSProviderConfigState {
|
||||
SMS_PROVIDER_CONFIG_INACTIVE = 2;
|
||||
}
|
||||
|
||||
message DebugNotificationProvider {
|
||||
zitadel.v1.ObjectDetails details = 1;
|
||||
bool compact = 2;
|
||||
}
|
||||
|
||||
message OIDCSettings {
|
||||
zitadel.v1.ObjectDetails details = 1;
|
||||
google.protobuf.Duration access_token_lifetime = 2;
|
||||
|
Reference in New Issue
Block a user