Contains C API definitions for policy profile.
Add a new policy engine to the profile.
Configures custom settings, used for feature gating and testing.
Override default async task dispatcher with client's own.
Override default HTTP stack with client's own.
Sets the session ID that can be used to correlate logs and telemetry.
Create a settings object used to create a policy profile.
Load a profile.
Trigger an authentication callback.
- Parameters
-
profile | Parent profile under which an engine will be added |
settings | Policy engine settings |
context | Client context that will be opaquely passed to HttpDelegate and AuthDelegate |
engine | [Output] Newly-created policy engine instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
profile | Profile |
cloud | Azure cloud |
authCallback | Authentication callback that will be invoked |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Note
- MIP will not cache or do anything else with the value returned by the auth delegate. This function is recommended for applications that aren't "logged in" until after MIP requests an auth token. It allows an application to fetch a token before MIP actually requires one.
- Parameters
-
settings | Profile settings |
profile | [Output] Newly-created policy profile instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
mipContext | Global context shared across all profiles |
cacheStorageType | Storage cache configuration |
reserved | Reserved for backwards compatibility - set to nullptr |
settings | [Output] Newly-created settings instance |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Profile settings |
sessionId | Session ID that represents the lifetime of a policy profile |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Profile settings to which HTTP delegate will be assigned |
httpDelegate | HTTP callback instance implemented by client application |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Profile settings to which task dispatcher delegate will be assigned |
taskDispatcherDelegate | Task dispatcher callback instance implemented by client application |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure
- Parameters
-
settings | Profile settings |
customSettings | Key/value pairs of custom settings |
errorInfo | [Output] (Optional) Failure info if operation result is error |
- Returns
- Result code indicating success or failure