So… I set up the CMS as described in the tutorials you sent me.
I even generated an “Access Token” via Postman without errors.
But the connection to Canva doesn’t work as it should.
In my URL there is nothing related to the “Web” folder
The “certs” folder (in my libraly folder) is correctly configured with the 3 files “encryption.key”, “private.key”, “public.key” generated according to the topic: Canva on xibo 3.0.3 - #2 by natasha
I tested the connection with canva with 02 different CMS’s on two different servers, both did not work.
This is the URL generated by canva (I’m hiding the sensitive information(CMS address and ClientID), but I can send it to you in private.)
Hi, I have discussed this with the team who have said the following:
Requests for /api/authorize should be routed to api/authorize/index.php whereas everything else under /api gets routed to api/index.php
At a guess you may have converted the .htaccess file into whatever IIS uses and that rule is either missing or not being correctly applied to the request. Take a look at this section IIS to convert, however we don’t support IIS directly and we don’t have access to test I am afraid.
If this is not the case then please do come back to us!
Hello Natasha! you helped a lot, thank you
I finally found out what was going on there.
I’m using IIS, and actually the .htacces conversion was being done correctly.
But the problem was in the URL generated by the CMS.
take a look, this is the URL generated by the CMS:
1202,bf333f2,“2022-08-31 01:21:46”,AUTH,/api/authorize/,GET,“Key path "file://library/certs/private.key" does not exist or is not readable”,ERROR
1203,bf333f2,“2022-08-31 01:21:46”,AUTH,/api/authorize/,GET,“API configuration problem, consult your administrator”,ERROR
1204,bf333f2,“2022-08-31 01:21:46”,AUTH,/api/authorize/,GET,"#0 [internal function]: Xibo\Middleware\ApiAuthentication->Xibo\Middleware{closure}(Object(DI\Container))
Try doing the full reset first as you have now added encryption keys etc. Failing that you could look at your CMS installation as you have web in the URL so correcting that may solve your issue: Prepare your Environment
Oi Raimundo, você é brasileiro certo?
Vou escrever em português pq vai ficar mais fácil de entender…
O seu problema cara está na URL gerada pela integração do Canva pelo que me parece… a solução foi descrita na minha resolução, leia com atenção:
Aí está dizendo que um padrão possui uma barra “/” e no outro não possui essa barra depois da palavra “autorize”.
Isso faz com que o regex de redirecionamento não funcione.
Você usa oq pra controlar as regras de redirecionamento de URLs? Web.config do IIS ou o HTACCESS?
Se usar o IIS/ Web.config, copie as regras que está no print da solução do tópico.
Se esse for o problema, irá resolver.
Me avise aqui se não der certo!
===================
English (free translation):
Hi Raimundo
It looks like that your problem is in the URL generated by the Canva integration as it seems to me… the solution was described in my resolution, read carefully:
There it is saying that one pattern has a slash “/” and the other does not have this slash after the word “authorize”.
This causes the redirect regex to not work.
What do you use to control URL redirection rules? IIS web.config or HTACCESS?
If using IIS/Web.config, copy the rules that are in the print of the topic’s solution.
If that’s the problem, it will fix it.
Let me know if it doesn’t work out!
======================
English (free translation):
In addition, follow all the steps that Natasha sent you regarding encryption keys.
these 03 files must be in your library:
From where he gets the private.key because the path file://library/certs/private.key I don’t know where it is.
1337,4e61830,“2022-08-31 20:28:13”,AUTH,/api/authorize/,GET,“Key path "file://library/certs/private.key" does not exist or is not readable”,ERROR
1338,4e61830,“2022-08-31 20:28:13”,AUTH,/api/authorize/,GET,“API configuration problem, consult your administrator”,ERROR