 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package claim wraps the JWT claims with util functions
Index ¶
Constants ¶
      View Source
      
  
const (
	ContextKey = "pydio-claims"
)
    Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claims ¶
type Claims struct {
	ClientApp   interface{} `json:"aud"`
	Issuer      string      `json:"iss"`
	Subject     string      `json:"sub"`
	Nonce       string      `json:"nonce"`
	Name        string      `json:"name"`
	Email       string      `json:"email"`
	Profile     string      `json:"profile"`
	Verified    bool        `json:"email_verified"`
	Roles       string      `json:"roles"`
	Expiry      time.Time   `json:"expiry"`
	AuthSource  string      `json:"authSource"`
	DisplayName string      `json:"displayName"`
	GroupPath   string      `json:"groupPath"`
}
    func (*Claims) DecodeSubject ¶
func (c *Claims) DecodeSubject() (*IDTokenSubject, error)
Decode Subject field of the claims
func (*Claims) DecodeUserUuid ¶
Decode Subject field of the claims
type IDTokenSubject ¶
type IDTokenSubject struct {
	// UserId specific to cells
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	// ConnId defines the connector chosen to login
	ConnId string `protobuf:"bytes,2,opt,name=conn_id,json=connId" json:"conn_id,omitempty"`
}
    IDTokenSubject is the representation of the format of subject we are using
func (*IDTokenSubject) Encode ¶
func (s *IDTokenSubject) Encode() ([]byte, error)
Encode the content of the ID Token Subject
func (*IDTokenSubject) ProtoMessage ¶
func (*IDTokenSubject) ProtoMessage()
ProtoMessage is used by the proto.Message interface
       Source Files
      ¶
      Source Files
      ¶
    
- claims.go
 Click to show internal directories. 
   Click to hide internal directories.