Namespace: authorize
Functions
filterForAppAuthorization
▸ filterForAppAuthorization(options
): String
[]
When sending data (usually raising intents) from an origin client to a list of possible destination apps,
the list of possible destinations need to be filtered based on possible authorization rules.
This function takes metadata and a list of possible appId's, and returns a filtered version of that list,
where the unauthorized destinations have been removed.
Note: This is only for apps, which have appId's. For sending data to specific clients,
see the function filterForClientAuthorization
.
Parameters
Name | Type |
---|---|
options | FilterForAppAuthorizationProps |
Returns
String
[]
The list of the UUID's of the filtered destinations
filterForClientAuthorization
▸ filterForClientAuthorization(options
): string
[]
When sending data (usually broadcasting context) from an origin client to a list of possible destination clients,
the list of possible destinations need to be filtered based on possible authorization rules.
This function takes metadata and a list of possible destination UUID's, and returns a filtered version of that list,
where the unauthorized destinations have been removed.
Note: This is only for clients, which have UUIDs. For apps generally, see the function filterForAppAuthorization
.
Parameters
Name | Type |
---|---|
options | FilterForClientAuthorizationProps |
Returns
string
[]
The list of the UUID's of the filtered destinations
isInteropAuthorized
▸ isInteropAuthorized(appName
, rules
): boolean
Parameters
Name | Type |
---|---|
appName | string |
rules | SelectConnectAppList [] |
Returns
boolean