public OidcTokenManager(OidcClientOptions options)
 {
     _state = new OidcTokenManagerState
     {
         Options = options
     };
     _client = new OidcClient(options);
 }
        private async void buttonLogin_Click(object sender, RoutedEventArgs e)
        {
            if (_manager == null)
            {
                var webView = new UwpWebView();
                var options = new OidcClientOptions("https://localhost:44333/core", "uwp", "secret", "openid profile write",
                    WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri, webView);
                _manager = new OidcTokenManager(options);
            }

            await _manager.LoginAsync();
            ShowLoginResult();
        }
示例#3
0
 public OidcClient(OidcClientOptions options)
 {
     _authorizeClient = new AuthorizeClient(options);
     _options = options;
 }
 public AuthorizeClient(OidcClientOptions options)
 {
     _options = options;
 }