共用方式為


OpenIdConnectAuthenticationOptions.CallbackPath Property

 

An optional constrained path on which to process the authentication callback. If not provided and RedirectUri is available, this value will be generated from RedirectUri.

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

Syntax

public PathString CallbackPath { get; set; }
public:
property PathString CallbackPath {
    PathString get();
    void set(PathString value);
}
member CallbackPath : PathString with get, set
Public Property CallbackPath As PathString

Property Value

Type: Microsoft.Owin.PathString

Returns PathString.

Remarks

If you set this value, then the OpenIdConnectAuthenticationHandler will only listen for posts at this address. If the IdentityProvider does not post to this address, you may end up in a 401 -> IdentityProvider -> Client -> 401 -> ...

See Also

OpenIdConnectAuthenticationOptions Class
Microsoft.Owin.Security.OpenIdConnect Namespace

Return to top