Compare commits

...

4 Commits

Author SHA1 Message Date
cced9311c5 Fixed typo 2025-10-22 18:58:25 +02:00
1f6f990185 Fixed Role Entity field names 2025-10-22 12:33:13 +02:00
95217521f1 Added DTO for Authorization header reading 2025-10-22 11:24:56 +02:00
acd224124e Added service field to URLAccess Entity 2025-10-22 09:00:34 +02:00
3 changed files with 13 additions and 6 deletions

5
identity/dto/headers.go Normal file
View File

@@ -0,0 +1,5 @@
package identity
type AuthorizationHeaderDTO struct {
Authorization string `reqHeader:"authorization"`
}

View File

@@ -2,6 +2,7 @@ package identity
type Role struct {
ID string `db:"id" json:"id"`
Roles []byte `db:"roles" json:"roles"`
Name string `db:"name" json:"name"`
DisplayName string `db:"display_name" json:"display_name"`
URL string `db:"url" json:"url"`
}

View File

@@ -4,4 +4,5 @@ type URLAccess struct {
ID string `db:"id" json:"id"`
Roles []string `db:"roles" json:"roles"`
URL string `db:"url" json:"url"`
Service string `db:"service" json:"service"`
}