WsFederationAuthenticationExtensions.UseWsFederationAuthentication Method (IAppBuilder, String, String)
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, _
wtrealm As String, _
metadataAddress As String _
) As IAppBuilder
'Usage
Dim app As IAppBuilder
Dim wtrealm As String
Dim metadataAddress As String
Dim returnValue As IAppBuilder
returnValue = app.UseWsFederationAuthentication(wtrealm, _
metadataAddress)
public static IAppBuilder UseWsFederationAuthentication(
this IAppBuilder app,
string wtrealm,
string metadataAddress
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseWsFederationAuthentication(
IAppBuilder^ app,
String^ wtrealm,
String^ metadataAddress
)
static member UseWsFederationAuthentication :
app:IAppBuilder *
wtrealm:string *
metadataAddress:string -> IAppBuilder
public static function UseWsFederationAuthentication(
app : IAppBuilder,
wtrealm : String,
metadataAddress : String
) : IAppBuilder
Parameters
- app
Type: IAppBuilder
The IAppBuilder passed to the configuration method
- wtrealm
Type: System.String
The application identifier.
- metadataAddress
Type: System.String
The address to retrieve the wsFederation metadata from.
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