Closed rifatSDAS closed 9 months ago
authenticateOIDC doesn't exist, the docs in the CDSE are wrong. Please contact them to get it fixed.
You need to use listAuthProviders
and then filter for the OIDC Proivder(s) you want to use.
https://open-eo.github.io/openeo-js-client/latest/Connection.html#listAuthProviders
Something like should give you all OIDC providers configured through the API:
let providers = await con.listAuthProviders();
let oidcProviders = providers.filter(p => p.getType() === "oidc");
Hi,
I am trying to test openEO JS client for my web app. During testing I got these errors
I am trying the Full Example from https://documentation.dataspace.copernicus.eu/APIs/openEO/JavaScript_Client/JavaScript.html
When
ERROR TypeError: con.authenticateOIDC is not a function
And when I am using
await con.authenticateBasic("my-CDSE-username", "my-CDSE-password");
ERROR Error: Credentials are not correct
N.B. I calling openEO api from HTML script tags
Any insight will be appreciated :-)