Пример #1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            Current = await RelyingParty.DoDiscovery(e.Parameter as Config);

            if (Current == null)
            {
                throw new ArgumentNullException();
            }
            State = Guid.NewGuid();
            // launch authorization request in embedded browser
            webView.Navigate(RelyingParty.NewAuthnRequest(Current, State));
        }