Documentation
¶
Index ¶
Constants ¶
View Source
const COOKIE_CODE = "LoginGovOAuthCode"
View Source
const COOKIE_STATE = "LoginGovOAuthState"
View Source
const COOKIE_USER_STORE = "LoginGovOAuthUserStore"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
OauthConf *oauth2.Config
CallbackPath string
Scopes string
ClientID string
Endpoint Endpoint
AcrValues string
LoginURL string
LogoutURL string
RedirectURL string
SuccessURL string
Emails map[string]bool
AuthPaths []string
WhitelistPaths []string
Next httpserver.Handler
// contains filtered or unexported fields
}
type LoginGovHandler ¶
type LoginGovHandler struct {
Next httpserver.Handler
// contains filtered or unexported fields
}
func (LoginGovHandler) ServeHTTP ¶
func (h LoginGovHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
IdToken string `json:"id_token"`
}
response from token endpoint
Click to show internal directories.
Click to hide internal directories.