ClientCollection.AddIdentityServerSPA 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加与授权服务器共存的单页应用程序。
public:
void AddIdentityServerSPA(System::String ^ clientId, Action<Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ClientBuilder ^> ^ configure);
public:
IdentityServer4::Models::Client ^ AddIdentityServerSPA(System::String ^ clientId, Action<Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ClientBuilder ^> ^ configure);
public void AddIdentityServerSPA (string clientId, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> configure);
public IdentityServer4.Models.Client AddIdentityServerSPA (string clientId, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> configure);
public Duende.IdentityServer.Models.Client AddIdentityServerSPA (string clientId, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> configure);
member this.AddIdentityServerSPA : string * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> -> unit
member this.AddIdentityServerSPA : string * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> -> IdentityServer4.Models.Client
member this.AddIdentityServerSPA : string * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientBuilder> -> Duende.IdentityServer.Models.Client
Public Sub AddIdentityServerSPA (clientId As String, configure As Action(Of ClientBuilder))
Public Function AddIdentityServerSPA (clientId As String, configure As Action(Of ClientBuilder)) As Client
参数
- clientId
- String
单页应用程序的客户端 ID。
- configure
- Action<ClientBuilder>
要 Action<T> 配置默认单页应用程序的 。
返回
IdentityServer4.Models.Client
Duende.IdentityServer.Models.Client