C# Class MSDN.Samples.ClaimsAuth.ClaimsWebAuth

Provides means to authenticate a user via a pop up login form.
Inheritance: IDisposable
Datei anzeigen Open project: OfficeDev/Project-Samples Class Usage Examples

Public Methods

Method Description
ClaimsWebAuth ( string targetSiteUrl, int popUpWidth, int popUpHeight ) : System

Displays a pop up window to authenticate the user

Dispose ( ) : void

Disposes of this instance.

Dispose ( bool disposing ) : void
Show ( ) : CookieCollection

Opens a Windows Forms Web Browser control to authenticate the user against an CLAIM site.

Private Methods

Method Description
ClaimsWebBrowser_Navigated ( object sender, System.Windows.Forms.WebBrowserNavigatedEventArgs e ) : void
ExtraHeadersFromResponse ( WebResponse response, string &loginUrl, Uri &navigationEndUrl ) : bool
ExtractAuthCookiesFromUrl ( string url ) : CookieCollection
GetClaimParams ( string targetUrl, string &loginUrl, Uri &navigationEndUrl ) : void
IgnoreCertificateErrorHandler ( object sender, System certificate, System chain, System sslPolicyErrors ) : bool

Method Details

ClaimsWebAuth() public method

Displays a pop up window to authenticate the user
public ClaimsWebAuth ( string targetSiteUrl, int popUpWidth, int popUpHeight ) : System
targetSiteUrl string
popUpWidth int
popUpHeight int
return System

Dispose() public method

Disposes of this instance.
public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

Show() public method

Opens a Windows Forms Web Browser control to authenticate the user against an CLAIM site.
public Show ( ) : CookieCollection
return System.Net.CookieCollection