예제 #1
0
    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;
        }
    }
예제 #2
0
    protected override void OnEnable()
    {
        base.OnEnable();

        _pkceConfig = (PKCE_AuthConfig)target;
    }