Hi GoodData team, I'd like to embed a dashboard in...
# gooddata-platform
v
Hi GoodData team, I'd like to embed a dashboard into our Angular v20 app. I followed your Web Components guide but got stuck in the authentication process. I load workspace script without ?auth=sso, I generated a personal access token but I’m not sure how to actually use it in this case. I'm getting the following warning in the browser console: The automatic authentication with https://......trial.cloud.gooddata.com is not enabled. You can enable it by adding "?auth=sso" to your script URL or provide the authentication context programmatically with the "setContext" method. I found this doc page: https://www.gooddata.com/docs/gooddata-ui/latest/learn/web_components/authentication/#programmatic-authentication However, I’m not sure what exactly I should implement here:
Copy code
function myAuthenticationHandler(authError) {
        // ... define the logic for custom authentication flow
    }
Thank you!
j
In Cloud + Angular, either add
?auth=sso
to your
<script>
(easiest), or initialize programmatic auth with
setContext(...)
. • SSO:
ContextDeferredAuthProvider(redirectToTigerAuthentication)
JWT (prod):
TigerJwtAuthProvider({ getJwt: () => fetch('/api/gooddata/jwt') })
API token (dev-only):
TigerTokenAuthProvider('<token>')
🙌 1
It also looks like you are using the gooddata cloud product and not platform. Please keep your posts in related channels