Compare commits

...

2 Commits

Author SHA1 Message Date
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
2 changed files with 9 additions and 3 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"`
}