✨ Setup etcd helper and magic onion
This commit is contained in:
		| @@ -189,8 +189,6 @@ public class DysonTokenAuthHandler( | ||||
|                     { | ||||
|                         return false; | ||||
|                     } | ||||
|  | ||||
|                     break; | ||||
|                 default: | ||||
|                     return false; | ||||
|             } | ||||
|   | ||||
| @@ -105,6 +105,7 @@ public class AuthService( | ||||
|  | ||||
|     public async Task<bool> ValidateCaptcha(string token) | ||||
|     { | ||||
|         await Task.CompletedTask; | ||||
|         if (string.IsNullOrWhiteSpace(token)) return false; | ||||
|  | ||||
|         // var provider = config.GetSection("Captcha")["Provider"]?.ToLower(); | ||||
|   | ||||
| @@ -21,8 +21,7 @@ public class OidcProviderController( | ||||
|     AppDatabase db, | ||||
|     OidcProviderService oidcService, | ||||
|     IConfiguration configuration, | ||||
|     IOptions<OidcProviderOptions> options, | ||||
|     ILogger<OidcProviderController> logger | ||||
|     IOptions<OidcProviderOptions> options | ||||
| ) | ||||
|     : ControllerBase | ||||
| { | ||||
|   | ||||
| @@ -27,6 +27,7 @@ public class OidcProviderService( | ||||
|  | ||||
|     public async Task<CustomApp?> FindClientByIdAsync(Guid clientId) | ||||
|     { | ||||
|         await Task.CompletedTask; | ||||
|         return null; | ||||
|         // return await db.CustomApps | ||||
|         //     .Include(c => c.Secrets) | ||||
| @@ -35,6 +36,7 @@ public class OidcProviderService( | ||||
|  | ||||
|     public async Task<CustomApp?> FindClientByAppIdAsync(Guid appId) | ||||
|     { | ||||
|         await Task.CompletedTask; | ||||
|         return null; | ||||
|         // return await db.CustomApps | ||||
|         //     .Include(c => c.Secrets) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user