語言

OpenIdConnectMessage 類別

定義

提供常見的 OpenID Connect 參數存取。

public class OpenIdConnectMessage : Microsoft.IdentityModel.Protocols.AuthenticationProtocolMessage
type OpenIdConnectMessage = class
    inherit AuthenticationProtocolMessage
Public Class OpenIdConnectMessage
Inherits AuthenticationProtocolMessage
繼承
OpenIdConnectMessage

建構函式

名稱 Description
OpenIdConnectMessage()

初始化 OpenIdConnectMessage 類別的新執行個體。

OpenIdConnectMessage(IEnumerable<KeyValuePair<String,String[]>>)

初始化 OpenIdConnectMessage 類別的新執行個體。

OpenIdConnectMessage(NameValueCollection)

初始化 OpenIdConnectMessage 類別的新執行個體。

OpenIdConnectMessage(OpenIdConnectMessage)

初始化 OpenIdConnectMessage 類別的新執行個體。

OpenIdConnectMessage(String)

用 json 字串初始化一個新的類別實例 OpenIdConnectMessage 。

屬性

名稱 Description
AccessToken

能被access_Token或設定。

AcrValues

要麼被設定為「acr_values」。

AuthorizationEndpoint

取得或設定授權端點的值

ClaimsLocales

要麼被設定為「claims_Locales」。

ClientAssertion

要麼被設定為「client_assertion」。

ClientAssertionType

要麼被client_assertion_type?

ClientId

能被client_id或設定為「」。

ClientSecret

要麼被設定為「client_secret」。

Code

要麼設定“代碼”。

Display

取得或設置「展示」。

DomainHint

要麼domain_hint?

EnableTelemetryParameters

取得或設定函式庫與版本的參數是否傳送到此 OpenIdConnectMessage 實例的查詢字串。 此值在訊息建立時設定為 EnableTelemetryParametersByDefault 的值。

EnableTelemetryParametersByDefault

取得或設定函式庫與版本的參數是否在查詢字串上傳送所有實 OpenIdConnectMessage例。

Error

會產生或設定「錯誤」。

ErrorDescription

會被設定為「error_description」。

ErrorUri

能被error_uri或設定為「」。

ExpiresIn

會被設定為「expires_in」。

GrantType

要麼grant_type?

IdentityProvider

要麼被設定為「identity_provider」。

IdToken

要麼被設定為「id_token」。

IdTokenHint

要麼被設定為「id_token_hint」。

Iss

要是要設定「iss」。

IssuerAddress

取得或設定發行機構的地址。

(繼承來源 AuthenticationProtocolMessage)
LoginHint

要麼被設定為「login_hint」。

MaxAge

會被設定為「max_age」。

Nonce

獲得或設定為「nonce」。

Parameters

以字典的形式取得訊息參數。

(繼承來源 AuthenticationProtocolMessage)
Password

取得或設定「密碼」。

PostLogoutRedirectUri

能被設定為「post_logout_redirect_uri」。

PostTitle

取得或設定在建構 post 字串時使用的標題。

(繼承來源 AuthenticationProtocolMessage)
Prompt

要是被設定「提示」或設定。

RedirectUri

可以被設定為「redirect_uri」。

RefreshToken

要麼被設定為「refresh_token」。

RequestType

接收或設定此訊息的請求類型

RequestUri

要麼request_uri,要麼設定「」。

Resource

獲得或設定「資源」

ResponseMode

要麼被設定為「response_mode」。

ResponseType

會被設定為「response_type」。

Scope

取得或設定「範圍」。

Script

取得建構 post 字串時使用的腳本。

(繼承來源 AuthenticationProtocolMessage)
ScriptButtonText

取得或設定用於建構文章字串時使用的腳本按鈕文字。

(繼承來源 AuthenticationProtocolMessage)
ScriptDisabledText

取得或設定用於構建文章字串時使用的文字,若腳本被停用時會顯示。

(繼承來源 AuthenticationProtocolMessage)
SessionState

能被設定為「session_state」。

Sid

取得或設定「sid」。

SkuTelemetryValue

取得以遙測資料形式傳送的 OpenIdConnectMessage 字串。

State

取得或設定「狀態」。

TargetLinkUri

要麼是「target_link_uri」?

TokenEndpoint

取得或設定標記端點的值。

TokenType

要麼被設定為「token_type」。

UiLocales

要麼是「ui_locales」?

UserId

會被設定為「user_id」。

Username

取得或設定「用戶名」。

方法

名稱 Description
BuildFormPost()

利用目前的發行人地址和已設定的參數建立表單貼文。

(繼承來源 AuthenticationProtocolMessage)
BuildRedirectUrl()

利用目前的發行者地址及已設定的參數建立 URL。

(繼承來源 AuthenticationProtocolMessage)
Clone()

回傳一個新的實例, OpenIdConnectMessage 值是從此物件複製而來。

CreateAuthenticationRequestUrl()

利用目前 OpenIdConnectMessage的內容建立 OpenIdConnect 訊息。

CreateLogoutRequestUrl()

利用目前 OpenIdConnectMessage的 。

GetParameter(String)

回傳一個參數。

(繼承來源 AuthenticationProtocolMessage)
RemoveParameter(String)

移除一個參數。

(繼承來源 AuthenticationProtocolMessage)
SetParameter(String, String)

為參數字典設定參數。

(繼承來源 AuthenticationProtocolMessage)
SetParameters(NameValueCollection)

設定集合參數。

(繼承來源 AuthenticationProtocolMessage)

適用於