TOidcClient.RestoreState Method
Injects a previously created authorization state into this client so that a subsequent FinishAuthorize call can complete the flow.
Remarks
Use this method to complete an authorization flow on a different TOidcClient instance than the one that started it -- for example, when the challenge and the callback are handled by two separate server requests. The auth state is keyed by ClientId, so this client must be configured with the same ClientId that produced AState for the callback to match.
Any auth state previously stored under the same key is replaced and freed.
Syntax
Unit: Sphinx.OidcClient
procedure TOidcClient.RestoreState(AState: TAuthState);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AState | TAuthState | The authorization state to restore. The client takes ownership of the instance. |