Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRedirectURL ¶
func BuildRedirectURL(item DiscoveryItem, returnTo, realm string) (string, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RedirectURL ¶
func (*Client) Verify ¶
func (oid *Client) Verify(uri string, discoveryStore DiscoveryStore, nonceStore NonceStore) (id string, err error)
type DiscoveryItem ¶
type DiscoveryStore ¶
type DiscoveryStore interface { Put(id string, info *DiscoveryItem) error // Return a discovered info, or nil. Get(id string) (*DiscoveryItem, error) }
type NonceStore ¶
type Xrd ¶
type Xrd struct {
Service []*XrdsIdentifier `xml:"Service"`
}
type XrdsDocument ¶
type XrdsIdentifier ¶
type XrdsIdentifier struct { Type []string `xml:"Type"` URI string `xml:"URI"` LocalID string `xml:"LocalID"` Priority int `xml:"priority,attr"` }
TODO: As per 11.2 in openid 2 specs, a service may have multiple
URIs. We don't care for discovery really, but we do care for verification though.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.