mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat(auth api): expose login policy of authenticated user (#4979)
Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
@@ -607,6 +607,17 @@ service AuthService {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
|
||||
// Returns the login policy of the current organisation
|
||||
rpc GetMyLoginPolicy(GetMyLoginPolicyRequest) returns (GetMyLoginPolicyResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/policies/login"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "authenticated"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
//This is an empty request
|
||||
@@ -1053,3 +1064,10 @@ message GetMyPrivacyPolicyRequest {}
|
||||
message GetMyPrivacyPolicyResponse {
|
||||
zitadel.policy.v1.PrivacyPolicy policy = 1;
|
||||
}
|
||||
|
||||
//This is an empty request
|
||||
message GetMyLoginPolicyRequest {}
|
||||
|
||||
message GetMyLoginPolicyResponse {
|
||||
zitadel.policy.v1.LoginPolicy policy = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user