Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions auth/user.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright © 2025 Prabhjot Singh Sethi, All Rights reserved
// Author: Prabhjot Singh Sethi <prabhjot.sethi@gmail.com>

package auth

// Auth construct obtained as part of the auth action being performed
// while processing a request, this is json tagged to allow passing
// the inforamtion internally in the system between the microservices
// we can validate entities like user, devices, service accounts etc
type AuthInfo struct {
Realm string `json:"realm,omitempty"`
UserName string `json:"preferred_username"`
Email string `json:"email,omitempty"`
FullName string `json:"name,omitempty"`
SessionID string `json:"sid"`
}