mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 14:15:50 +00:00 
			
		
		
		
	feat: map info from OIDC claims to headers (#122)
* 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
This commit is contained in:
		| @@ -45,6 +45,11 @@ var authConfig = types.AuthConfig{ | ||||
| 	LoginMaxRetries: 0, | ||||
| } | ||||
|  | ||||
| // Simple hooks config for tests | ||||
| var hooksConfig = types.HooksConfig{ | ||||
| 	Domain: "localhost", | ||||
| } | ||||
|  | ||||
| // Cookie | ||||
| var cookie string | ||||
|  | ||||
| @@ -83,7 +88,7 @@ func getAPI(t *testing.T) *api.API { | ||||
| 	providers.Init() | ||||
|  | ||||
| 	// Create hooks service | ||||
| 	hooks := hooks.NewHooks(auth, providers) | ||||
| 	hooks := hooks.NewHooks(hooksConfig, auth, providers) | ||||
|  | ||||
| 	// Create handlers service | ||||
| 	handlers := handlers.NewHandlers(handlersConfig, auth, hooks, providers, docker) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros