WsFederationAuthenticationExtensions.UseWsFederationAuthentication Method (IAppBuilder, WsFederationAuthenticationOptions)

Adds the WsFederationAuthenticationMiddleware into the OWIN runtime.

Namespace:  Owin
Assembly:  Microsoft.Owin.Security.WsFederation (in Microsoft.Owin.Security.WsFederation.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function UseWsFederationAuthentication ( _
    app As IAppBuilder, _
    wsFederationOptions As WsFederationAuthenticationOptions _
) As IAppBuilder
'Usage
Dim app As IAppBuilder 
Dim wsFederationOptions As WsFederationAuthenticationOptions 
Dim returnValue As IAppBuilder 

returnValue = app.UseWsFederationAuthentication(wsFederationOptions)
public static IAppBuilder UseWsFederationAuthentication(
    this IAppBuilder app,
    WsFederationAuthenticationOptions wsFederationOptions
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseWsFederationAuthentication(
    IAppBuilder^ app, 
    WsFederationAuthenticationOptions^ wsFederationOptions
)
static member UseWsFederationAuthentication : 
        app:IAppBuilder * 
        wsFederationOptions:WsFederationAuthenticationOptions -> IAppBuilder
public static function UseWsFederationAuthentication(
    app : IAppBuilder, 
    wsFederationOptions : WsFederationAuthenticationOptions
) : IAppBuilder

Parameters

  • app
    Type: IAppBuilder
    The IAppBuilder passed to the configuration method

Return Value

Type: IAppBuilder
The updated IAppBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see b8020aae-374d-46a9-bcb7-8cc2390b93b6 or 175ce3ff-9bbf-4e64-8421-faeb81a0bb51.

See Also

Reference

WsFederationAuthenticationExtensions Class

UseWsFederationAuthentication Overload

Owin Namespace