Class XperiflowAuthClient
Namespace: Workspace.XBR.Xperiflow.Core.RestApi.Auth
Assembly: Xperiflow.dll
public class XperiflowAuthClient : IXperiflowAuthClient
Implements: Workspace.XBR.Xperiflow.Core.RestApi.Auth.IXperiflowAuthClient
Properties
JsonSerializerSettings
protected JsonSerializerSettings JsonSerializerSettings { get; }
ReadResponseAsString
public bool ReadResponseAsString { get; set; }
Methods
PostProvisionDataflowRefreshTokenResourceAsync(XperiflowSessionInfo, MemoizedCacheInfo?, int[], CancellationToken)
ProvisionDataflowRefreshTokenResource
public virtual Task<NullDataXperiflowResponseContext> PostProvisionDataflowRefreshTokenResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, MemoizedCacheInfo? cacheInfo = null, int[] mutedStatusCodes = null, CancellationToken cancellationToken = default)
Remarks
Mint and store an xperiflow.server-bound refresh token for the caller. Exchanges the inbound Authorization: Bearer token with OIS and upserts the resulting refresh token in Key Vault under user-id-`{user_id}`-rt (the IAM integer si.user_id), including local disk-cache metadata for the renewal gate. The secret is not returned in the response body.
The caller must already be a provisioned Xperiflow IAM identity (same contract as default-tier REST endpoints using si: XatUser).
Returns
Task< Workspace.XBR.Xperiflow.Core.RestApi.Auth.NullDataXperiflowResponseContext >
ok
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfo | x_OS_SessionInfo | OneStream session info header object. |
| Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfo | cacheInfo | |
System.Int32[] | mutedStatusCodes | |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Exceptions
Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<XperiflowAuthClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Returns
Task<Workspace.XBR.Xperiflow.Core.RestApi.Auth.XperiflowAuthClient.ObjectResponseResult{{T}}>
Parameters
| Type | Name |
|---|---|
System.Net.Http.HttpResponseMessage | response |
System.Collections.Generic.IReadOnlyDictionary<System.String,System.Collections.Generic.IEnumerable{System.String}> | headers |
System.Threading.CancellationToken | cancellationToken |
Type Parameters
T
Implements
Inherited Members
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString