WSFederationAuthenticationModule.GetSessionTokenContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a string that should be persisted with the session cookie in the Context property.
protected:
virtual System::String ^ GetSessionTokenContext();
protected virtual string GetSessionTokenContext ();
abstract member GetSessionTokenContext : unit -> string
override this.GetSessionTokenContext : unit -> string
Protected Overridable Function GetSessionTokenContext () As String
Returns
The string to persist in the session cookie.
Exceptions
The Issuer property is null
.
Remarks
The GetSessionTokenContext method is called from the request processing pipeline when processing a WS-Federation sign-in response message to get the value to store in the SessionSecurityToken.Context property inside the session cookie.
You can override this method to provide an application-specific value to be stored in the cookie. WSFAM does not expose any methods to retrieve the value from the cookie. You must provide the logic in your application to read the value back from the cookie if it is needed.
Applies to
See also
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre