-
Hello, We are trying to debug our connectivity to Unleash with Unleash edge. Here is an example of curl command that works:
where the user we are trying to use is a Service Account token. And this is the one which doesn't work:
It ends up in a 403. We believe it's because unleash edge is expecting another header than Also using Unleash Edge on another project works fine but the client is using the Java SDK and not direct API call, but it shows that our Unleash Edge setup is working. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @fdebuire, Unleash Edge only exposes a read replica of the endpoints necessary for SDKs to work. That means that this endpoint: Because Edge only exposes the SDK endpoints, it only accepts Client Tokens and Frontend Tokens. The service account token you're using here only allows access to the admin endpoints. Edge is likely working fine with your Java SDK (which must be using a Client Token) because its smart enough to reuse the token that the Java SDK sends it, in order to authenticate to Unleash itself. As an aside, it can be helpful to set the What are you trying to do here? It sounds like you might be wanting to use Edge for a use case we hadn't considered? |
Beta Was this translation helpful? Give feedback.
Hey @fdebuire,
Unleash Edge only exposes a read replica of the endpoints necessary for SDKs to work. That means that this endpoint:
https://eu.app.unleash-hosted.com/REDACTED/api/admin/projects
isn't available using Edge, you need to go through the Unleash API directly if you're looking for information about projects.Because Edge only exposes the SDK endpoints, it only accepts Client Tokens and Frontend Tokens. The service account token you're using here only allows access to the admin endpoints.
Edge is likely working fine with your Java SDK (which must be using a Client Token) because its smart enough to reuse the token that the Java SDK sends it, in order to authenticate to Unleash it…