Things i keep getting wrong part n+1
AUTH'ing your context.
if you want to do any forward and back between servers you will need to make sure you include auth.
The Early Adopters Communication series goes into depth in how to do this, but the most important bit.
consume the auth context, and set your OpenAPI.TOKEN to the umbraco one!
this.consumeContext(UMB_AUTH_CONTEXT, (_auth) => {
const umbOpenApi = _auth.getOpenApiConfiguration();
OpenAPI.TOKEN = umbOpenApi.token;
OpenAPI.BASE = umbOpenApi.base;
OpenAPI.WITH_CREDENTIALS = umbOpenApi.withCredentials
});
Don't do this, and nothing will authenticate
updates for preview005: You can now get the umbraco OpenAPI config via getOpenApiConfiguration
, this gives you access to more of the OpenApi settings from the core.
Top comments (0)