示例#1
0
        protected override AuthorizationResult OnAuthenticate()
        {
            AuthorizationResult result;

            using (var dialog = new WindowsFormsWebAuthenticationDialog(this.OwnerWindow))
            {
                result = dialog.AuthenticateAAD(this.RequestUri, this.CallbackUri);
            }

            return(result);
        }
示例#2
0
        protected override AuthorizationResult OnAuthenticate()
        {
            AuthorizationResult result;

            using (_dialog = new WindowsFormsWebAuthenticationDialog(OwnerWindow)
            {
                RequestContext = RequestContext
            })
            {
                result = _dialog.AuthenticateAAD(RequestUri, CallbackUri);
            }

            return(result);
        }