Class OpenBiAuthObjectExtensions
Extension methods for auth objects.
Inheritance
Namespace: BiExcellence.OpenBi.Api.Commands.AuthObjects
Assembly: BiExcellence.OpenBi.Api.AuthObject.dll
Syntax
public static class OpenBiAuthObjectExtensions
Methods
CreateAuthObjectAsync(IOpenBiSession, IAuthObject, CancellationToken)
Creates or updates an auth object.
Declaration
public static Task CreateAuthObjectAsync(this IOpenBiSession session, IAuthObject authObject, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IAuthObject | authObject | The auth object. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
CreateAuthObjectValueAsync(IOpenBiSession, IAuthObjectValue, CancellationToken)
Creates or updates an auth object value.
Declaration
public static Task CreateAuthObjectValueAsync(this IOpenBiSession session, IAuthObjectValue authObjectValue, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IAuthObjectValue | authObjectValue | The auth object value. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectAsync(IOpenBiSession, IAuthObject, CancellationToken)
Deletes an auth object.
Declaration
public static Task DeleteAuthObjectAsync(this IOpenBiSession session, IAuthObject authObject, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IAuthObject | authObject | The auth object. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectAsync(IOpenBiSession, string, CancellationToken)
Deletes an auth object by id.
Declaration
public static Task DeleteAuthObjectAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | id | The auth object id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectsAsync(IOpenBiSession, IEnumerable<IAuthObject>, CancellationToken)
Deletes auth objects.
Declaration
public static Task DeleteAuthObjectsAsync(this IOpenBiSession session, IEnumerable<IAuthObject> authObjects, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<IAuthObject> | authObjects | The auth objects. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectsAsync(IOpenBiSession, IEnumerable<string>, CancellationToken)
Deletes auth objects by id.
Declaration
public static Task DeleteAuthObjectsAsync(this IOpenBiSession session, IEnumerable<string> ids, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<string> | ids | The auth object ids. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectValueAsync(IOpenBiSession, IAuthObjectValue, CancellationToken)
Deletes an auth object value.
Declaration
public static Task DeleteAuthObjectValueAsync(this IOpenBiSession session, IAuthObjectValue authObjectValue, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IAuthObjectValue | authObjectValue | The auth object value. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectValueAsync(IOpenBiSession, string, CancellationToken)
Deletes an auth object value by id.
Declaration
public static Task DeleteAuthObjectValueAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | id | The auth object value id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectValuesAsync(IOpenBiSession, IEnumerable<IAuthObjectValue>, CancellationToken)
Deletes auth object values.
Declaration
public static Task DeleteAuthObjectValuesAsync(this IOpenBiSession session, IEnumerable<IAuthObjectValue> authObjectValues, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<IAuthObjectValue> | authObjectValues | The auth object values. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
DeleteAuthObjectValuesAsync(IOpenBiSession, IEnumerable<string>, CancellationToken)
Deletes auth object values by id.
Declaration
public static Task DeleteAuthObjectValuesAsync(this IOpenBiSession session, IEnumerable<string> ids, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
IEnumerable<string> | ids | The auth object value ids. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |
GetAuthObjectsAsync(IOpenBiSession, CancellationToken)
Returns all auth objects.
Declaration
public static Task<IList<IAuthObject>> GetAuthObjectsAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<IAuthObject>> |
GetAuthObjectValueByIdAsync(IOpenBiSession, string, CancellationToken)
Returns an auth object by its id.
Declaration
public static Task<IAuthObjectValue?> GetAuthObjectValueByIdAsync(this IOpenBiSession session, string id, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | id | The auth object id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IAuthObjectValue> |
GetAuthObjectValuesAsync(IOpenBiSession, CancellationToken)
Returns all auth object values.
Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<IAuthObjectValue>> |
GetAuthObjectValuesByOwnerAsync(IOpenBiSession, string, string, CancellationToken)
Returns all auth objects for an owner and auth object id.
Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesByOwnerAsync(this IOpenBiSession session, string owner, string authObjectId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | owner | The owner. |
string | authObjectId | The auth object id. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<IAuthObjectValue>> |
Remarks
The owner is typically a username or organisation id.
GetAuthObjectValuesByOwnerAsync(IOpenBiSession, string, CancellationToken)
Returns all auth objects for an owner.
Declaration
public static Task<IList<IAuthObjectValue>> GetAuthObjectValuesByOwnerAsync(this IOpenBiSession session, string owner, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | The session. |
string | owner | The owner. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IList<IAuthObjectValue>> |
Remarks
The owner is typically a username or organisation id.