public MainWindow()
        {
            InitializeComponent();

            _settings = new OidcSettings
            {
                Authority = "https://localhost:44333/core",
                ClientId = "wpf.hybrid.pop",
                ClientSecret = "secret",
                RedirectUri = "http://localhost/wpf.hybrid.pop",
                Scope = "openid profile write offline_access",
                LoadUserProfile = true
            };

            _login = new LoginWebView(_settings.RedirectUri);
            _login.Done += _login_Done;

            Loaded += MainWindow_Loaded;
            //IdentityTextBox.Visibility = Visibility.Hidden;
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            _settings = new OidcSettings
            {
                Authority       = "https://localhost:44333/core",
                ClientId        = "wpf.hybrid.pop",
                ClientSecret    = "secret",
                RedirectUri     = "http://localhost/wpf.hybrid.pop",
                Scope           = "openid profile write offline_access",
                LoadUserProfile = true
            };

            _login       = new LoginWebView(_settings.RedirectUri);
            _login.Done += _login_Done;

            Loaded += MainWindow_Loaded;
            //IdentityTextBox.Visibility = Visibility.Hidden;
        }