on my webpage I managed to create token generator (on my dev site), which stores the token into databse (in my model) and checks its validation in controller (token is used to validate uploading page).
This works fine, but my boss would like the token generation to be added in Backoffice. I managed to create custom section with dashboard, and since it's not possible to use cshtml files for dashboard, I would like to know wether it's possible to recreate this functionality into dashboard (with html view and angular controller).
Furthermore, I would like to know if it's possible (in theory) to recreate anything (as in functionalities) into dashboard which can be created on webpages.
That is definitely possible. As you already noticed you can only work client side in the backoffice, so you need serverside endpoints to handle your token operations.
You can use authorized Api controllers for this (Umbraco then handles the authorization for you, ensuring that only logged in backoffice users can use them). You can read more about it here:
https://our.umbraco.com/documentation/Reference/Routing/WebApi/
Adding logic to custom dashboard
Hi all,
on my webpage I managed to create token generator (on my dev site), which stores the token into databse (in my model) and checks its validation in controller (token is used to validate uploading page).
This works fine, but my boss would like the token generation to be added in Backoffice. I managed to create custom section with dashboard, and since it's not possible to use cshtml files for dashboard, I would like to know wether it's possible to recreate this functionality into dashboard (with html view and angular controller).
Furthermore, I would like to know if it's possible (in theory) to recreate anything (as in functionalities) into dashboard which can be created on webpages.
Thanks in advance,
Jakub
Hi Jakub
That is definitely possible. As you already noticed you can only work client side in the backoffice, so you need serverside endpoints to handle your token operations.
You can use authorized Api controllers for this (Umbraco then handles the authorization for you, ensuring that only logged in backoffice users can use them). You can read more about it here: https://our.umbraco.com/documentation/Reference/Routing/WebApi/
is working on a reply...