mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-11-03 15:45:51 +00:00
wip
This commit is contained in:
15
internal/types/config.go
Normal file
15
internal/types/config.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package types
|
||||
|
||||
// API config is the configuration for the API
|
||||
type APIConfig struct {
|
||||
Port int
|
||||
Address string
|
||||
Secret string
|
||||
AppURL string
|
||||
CookieSecure bool
|
||||
SessionExpiry int
|
||||
DisableContinue bool
|
||||
GenericName string
|
||||
Title string
|
||||
Domain string
|
||||
}
|
||||
13
internal/types/handlers.go
Normal file
13
internal/types/handlers.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package types
|
||||
|
||||
// HealthCheckResponse is the response for the health check endpoint
|
||||
type HealthCheckResponse struct {
|
||||
Status int `json:"status" example:"200"`
|
||||
Message string `json:"message" example:"Ok"`
|
||||
}
|
||||
|
||||
// LogoutResponse is the response for the health check endpoint
|
||||
type LogoutResponse struct {
|
||||
Status int `json:"status" example:"200"`
|
||||
Message string `json:"message" example:"Logged out"`
|
||||
}
|
||||
@@ -67,19 +67,6 @@ type UserContext struct {
|
||||
TotpPending bool
|
||||
}
|
||||
|
||||
// APIConfig is the configuration for the API
|
||||
type APIConfig struct {
|
||||
Port int
|
||||
Address string
|
||||
Secret string
|
||||
AppURL string
|
||||
CookieSecure bool
|
||||
SessionExpiry int
|
||||
DisableContinue bool
|
||||
GenericName string
|
||||
Title string
|
||||
}
|
||||
|
||||
// OAuthConfig is the configuration for the providers
|
||||
type OAuthConfig struct {
|
||||
GithubClientId string
|
||||
|
||||
Reference in New Issue
Block a user