共用方式為


ApiResourceCollection.AddIdentityServerJwt 方法

定義

建立與授權伺服器共存的新 API。

public:
 void AddIdentityServerJwt(System::String ^ name, Action<Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ApiResourceBuilder ^> ^ configure);
public void AddIdentityServerJwt (string name, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder> configure);
member this.AddIdentityServerJwt : string * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder> -> unit
Public Sub AddIdentityServerJwt (name As String, configure As Action(Of ApiResourceBuilder))

參數

name
String

API 的名稱。

configure
Action<ApiResourceBuilder>

Func<T,TResult> 設定識別伺服器 jwt API 的 。

適用於