Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicePageData ¶
type DevicePageData struct {
SessionID string
DeviceCode string
UserCode string
VerificationURI string
PollInterval int
LogoURI string
}
DevicePageData holds data for the device flow template.
type LoginPageData ¶
type LoginPageData struct {
ScopesSupported []string
LogoURI string
User *session.UserClaims
NotLoggedIn bool
LogoutURL string
}
LoginPageData holds data for the login page template.
type Options ¶
type Options struct {
ClientID string
ClientSecret string
RedirectURI string
IssuerURL string
PKCE bool
SessionAware bool
RootCAs string
Debug bool
}
Options configures the Server.
type Renderer ¶
type Renderer interface {
RenderLoginPage(w http.ResponseWriter, data LoginPageData)
RenderTokenPage(w http.ResponseWriter, data TokenPageData)
RenderDevicePage(w http.ResponseWriter, data DevicePageData)
}
Renderer renders HTML pages for the application.
Click to show internal directories.
Click to hide internal directories.