claim

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package claim wraps the JWT claims with util functions

Index

Constants

View Source
const (
	ContextKey         = "pydio-claims"
	MetadataContextKey = "x-pydio-claims"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	ClientApp   string    `json:"aud"`
	Issuer      string    `json:"iss"`
	Subject     string    `json:"sub"`
	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) DecodeUserUuid

func (c *Claims) DecodeUserUuid() (string, error)

Decode Subject field of the claims

type IDTokenSubject

type IDTokenSubject struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	ConnId string `protobuf:"bytes,2,opt,name=conn_id,json=connId" json:"conn_id,omitempty"`
}

func (*IDTokenSubject) ProtoMessage

func (*IDTokenSubject) ProtoMessage()

func (*IDTokenSubject) Reset

func (m *IDTokenSubject) Reset()

func (*IDTokenSubject) String

func (m *IDTokenSubject) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL