public void Configure(object config) { if (config is AuthorizationConfig authConfig) { _clientID = authConfig.ClientID; // Start server with config values _server = new EmbedIOAuthServer(new Uri(authConfig.RedirectUri), authConfig.ServerPort); } if (config is PKCE_AuthConfig pkceConfig) { PKCEConfig = pkceConfig; } }
protected override void OnEnable() { base.OnEnable(); _pkceConfig = (PKCE_AuthConfig)target; }