feat: add access profile selection support with device-specific profile persistence
Add SelectOwnProfile handler to allow users to choose from available access profiles. Store selected profile ID per device in settings table with device_access_profile category. Implement GetSelectedProfileID and SetSelectedProfileID repository methods using JSONB storage. Add ListSelectableProfiles to policy repository and service to query user/group/device-specific profiles ordered by priority. Filter gateway
This commit is contained in:
@@ -49,6 +49,7 @@ func NewRouter(jwtSecret string, handlers Handlers) http.Handler {
|
||||
r.Post("/devices/enroll", handlers.Device.Enroll)
|
||||
r.Get("/me/devices", handlers.Device.ListOwn)
|
||||
r.Get("/me/profile", handlers.Device.GetOwnProfile)
|
||||
r.Put("/me/profile-selection", handlers.Device.SelectOwnProfile)
|
||||
r.Get("/connection/status", handlers.Device.ConnectionStatus)
|
||||
|
||||
r.Route("/admin", func(r chi.Router) {
|
||||
|
||||
Reference in New Issue
Block a user