mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	feat: create oauth broker service
This commit is contained in:
		@@ -1,7 +1,5 @@
 | 
			
		||||
package config
 | 
			
		||||
 | 
			
		||||
import "time"
 | 
			
		||||
 | 
			
		||||
type Claims struct {
 | 
			
		||||
	Name              string `json:"name"`
 | 
			
		||||
	Email             string `json:"email"`
 | 
			
		||||
@@ -100,7 +98,6 @@ type OAuthServiceConfig struct {
 | 
			
		||||
	TokenURL           string
 | 
			
		||||
	UserinfoURL        string
 | 
			
		||||
	InsecureSkipVerify bool
 | 
			
		||||
	Name               string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type User struct {
 | 
			
		||||
@@ -114,8 +111,6 @@ type UserSearch struct {
 | 
			
		||||
	Type     string // local, ldap or unknown
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Users []User
 | 
			
		||||
 | 
			
		||||
type SessionCookie struct {
 | 
			
		||||
	Username    string
 | 
			
		||||
	Name        string
 | 
			
		||||
@@ -137,12 +132,6 @@ type UserContext struct {
 | 
			
		||||
	TotpEnabled bool
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type LoginAttempt struct {
 | 
			
		||||
	FailedAttempts int
 | 
			
		||||
	LastAttempt    time.Time
 | 
			
		||||
	LockedUntil    time.Time
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type UnauthorizedQuery struct {
 | 
			
		||||
	Username string `url:"username"`
 | 
			
		||||
	Resource string `url:"resource"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user