Add authorization framework for gRPC methods

This commit is contained in:
Theodor S. Midtlien
2026-09-08 17:20:02 +02:00
parent b2f7eacd34
commit 2df40fcc26
8 changed files with 354 additions and 159 deletions
+5
View File
@@ -2723,6 +2723,11 @@ func (s *Server) SessionHolder() (ipcauth.Principal, bool) {
return principal, true
}
func (s *Server) OwnsProfile(id ipcauth.Identity, handle string) bool {
// TODO
return false
}
func persistLoginOverrides(activeProf *profilemanager.ActiveProfileState, managementURL string, preSharedKey *string) error {
if preSharedKey != nil && *preSharedKey == "" {
preSharedKey = nil