mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 05:35:44 +00:00 
			
		
		
		
	 a9e8bf89a9
			
		
	
	a9e8bf89a9
	
	
	
		
			
			* refactor: return all values from body in the providers * refactor: only accept claims following the OIDC spec * feat: map info from OIDC claims to headers * feat: add support for required oauth groups * fix: bot suggestions * feat: get claims from github and google * fix: close body correctly
		
			
				
	
	
		
			19 lines
		
	
	
		
			551 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			551 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package constants
 | |
| 
 | |
| // TinyauthLabels is a list of labels that can be used in a tinyauth protected container
 | |
| var TinyauthLabels = []string{
 | |
| 	"tinyauth.oauth.whitelist",
 | |
| 	"tinyauth.users",
 | |
| 	"tinyauth.allowed",
 | |
| 	"tinyauth.headers",
 | |
| 	"tinyauth.oauth.groups",
 | |
| }
 | |
| 
 | |
| // Claims are the OIDC supported claims (including preferd username for some reason)
 | |
| type Claims struct {
 | |
| 	Name              string   `json:"name"`
 | |
| 	Email             string   `json:"email"`
 | |
| 	PreferredUsername string   `json:"preferred_username"`
 | |
| 	Groups            []string `json:"groups"`
 | |
| }
 |