Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(quantic): added missing privilege to insight token provider class #4489

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
global with sharing class InsightTokenProvider implements ITokenProvider {
public static final String TYPE_VIEW = 'VIEW';
public static final String TYPE_EDIT = 'EDIT';
public static final String TYPE_ENABLE = 'ENABLE';
public static final String OWNER_USAGE_ANALYTICS = 'USAGE_ANALYTICS';
public static final String OWNER_CUSTOMER_SERVICE = 'CUSTOMER_SERVICE';
public static final String OWNER_SEARCH_API = 'SEARCH_API';
public static final String DOMAIN_ANALYTICS_ANALYTICS_DATA = 'ANALYTICS_DATA';
public static final String DOMAIN_CUSTOMER_SERVICE_INSIGHT_PANEL_INTERFACE = 'INSIGHT_PANEL_INTERFACE';
public static final String DOMAIN_CUSTOMER_SERVICE_INSIGHT_PANEL_DOCUMENTS = 'INSIGHT_PANEL_DOCUMENTS';
public static final String DOMAIN_SEARCH_API_EXECUTE_QUERY = 'EXECUTE_QUERY';

/**
* Returns the privileges needed to put in a Platform token in order to use the Hosted Insight Panel feature.
Expand Down Expand Up @@ -38,6 +41,13 @@ global with sharing class InsightTokenProvider implements ITokenProvider {
TYPE_VIEW
)
);
privileges.add(
new CoveoV2.PlatformToken.TokenPrivilege(
OWNER_SEARCH_API,
DOMAIN_SEARCH_API_EXECUTE_QUERY,
TYPE_ENABLE
)
);
return privileges;
}

Expand Down
Loading