mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 21:55:43 +00:00 
			
		
		
		
	refactor/handlers (#51)
* wip * refactor: use prefix instead of patern in docker meta * tests: fix tests
This commit is contained in:
		| @@ -69,15 +69,12 @@ type UserContext struct { | ||||
|  | ||||
| // 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 | ||||
| 	Port          int | ||||
| 	Address       string | ||||
| 	Secret        string | ||||
| 	CookieSecure  bool | ||||
| 	SessionExpiry int | ||||
| 	Domain        string | ||||
| } | ||||
|  | ||||
| // OAuthConfig is the configuration for the providers | ||||
| @@ -164,3 +161,13 @@ type AppContext struct { | ||||
| type TotpRequest struct { | ||||
| 	Code string `json:"code"` | ||||
| } | ||||
|  | ||||
| // Server configuration | ||||
| type HandlersConfig struct { | ||||
| 	AppURL          string | ||||
| 	Domain          string | ||||
| 	CookieSecure    bool | ||||
| 	DisableContinue bool | ||||
| 	GenericName     string | ||||
| 	Title           string | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros