Documentation
¶
Overview ¶
package web implemented the web interface for usermgr
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewContextFunc = func(r *http.Request) context.Context { return context.Background() }
NewContextFunc is invoked to renerate the new context for a request. The default implementation uses context.Background, but when running in appengine this must be replaced with appengine.NewContext(r).
View Source
var TimeNow = time.Now
Functions ¶
Types ¶
type OauthAuth ¶
type OauthAuth struct {
Config oauth2.Config
UserInfoURL string
EmailSuffix string
TokenSigningKey []byte
ValidateRemoteUser func(usermgr.User) (isAdmin bool, err error)
}
func (OauthAuth) HandleCallback ¶
type OpenIDUserInfo ¶
type OpenIDUserInfo struct {
// Subject - Identifier for the End-User at the Issuer.
Sub string `json:"sub"`
// End-User's full name in displayable form including all name parts,
// possibly including titles and suffixes, ordered according to the
// End-User's locale and preferences.
Name string `json:"name"`
// End-User's preferred e-mail address. Its value MUST conform to the
// RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this
// value being unique, as discussed in Section 5.7.
Email string `json:"email"`
}
OpenIDUserInfo is the OpenID connect user information response http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse
type RemoteUser ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.