Discussions
Is there a way to get the Role of the current User
Hi :)
We build a plugin which has a elaborate configuration. To get to the configuration page, we added a button to our app. The Problem is, that every user can see this button for now, but the plan is to display this button only to moderators and admins. I looked at the manifest file if we could get the role from the context, but all i could find were "username", "usermail" and "userlanguage". So how could we determine if a user is a "normal" user or an mod/admin.
Thx in advance
Chris
Posted by Chris Langenberg about 3 years ago
Where can I report bug in COYO's plug-in adapter library?
Posted by Fynn Feldpausch over 3 years ago
Multilingual feature of Haiilo / COYO for Custom Plugins / Widgets?
In the context mentioned above, we (as third party plugin provider) have become aware of a problem regarding multilingualism.
Your product basically allows multilingualism for your widgets. Unfortunately, this does not seem to work identically for 3rd party plugins / widgets. E.g. a poll once created in a content app of a page is copied 1:1 during translation of the content app, but as soon as you change the translated version, the "original" is also changed.
Is the issue of multilingualism for custom plugins not possible in this way, or not possible at all?f
Posted by Stefan Schaffrath about 2 years ago
How can plugin hosts validate COYO instances?
Hi!
As a plugin host i want to be able to deliver my plugins only to certain COYO instances (instances who pay for the plugin).So how is it possible to validate COYO instances who try to install a plugin which is provided by my own plugin host?
I thought that the only way was to check the certificate which is delivered once on the lifecycle event "install". But how could this certificate be validated if i do not have it beforehand? What is the idea behind this certificate or are there any other possibilities?
Best regards
Alex
Posted by Alexander Voigt about 3 years ago
Get Haiilo parent theme into the plugin context
Currently, the Haiilo plugin provides a configuration field with the possibility to set custom configurations such as background color, etc.
<https://dev.coyoapp.com/recipes/add-global-configuration>
<https://dev.coyoapp.com/recipes/use-configuration-values-from-the-pluginadapter>
But I would like to know if there is a possibility to get the information about the current theme colors of logged-in users into the plugin context so that I can change the theme color of my custom plugin components e.g. buttons without using plugin configuration.
Posted by Roby Hartono 10 months ago
Config View Width
Hey,
I tried to influence the width of the custom config view dialog. The docs mention the format "{width}:{height}". I had no luck...tried different variations but saw no difference. Our plugins send updates via plugin-adapter during the entrypoint lifetime. I also disabled that just for testing. No luck :(
Is that still working?
BR, Lars.
Posted by Lars Kreisz almost 2 years ago
Possible to use pluginAdapter without building
Every now and then I stumble over a problem and I'm unsure if it's on my project or maybe on the library I'm using. I like to get rid of my code and build a minimal reproduction example by using the library on its own. Often enough doing this I discover my mistake. If not, I like to share the minimal reproduction example and like to have it easy to consume. My question: Can I use the plugin adapter from a CDN or without using a local build setup?
Things I tried:
<script type="module">
import { PluginAdapter } from "https://unpkg.com/@coyoapp/[email protected]/build/module/lib/plugin-adapter.js";
// Failed to resolve module specifier "jwt-decode"
</script>
---
<script type="module">
import { PluginAdapter } from "https://unpkg.com/@coyoapp/[email protected]/build/module/lib/plugin-adapter.js";
// Failed to resolve module specifier "core-js/features/promise/any"
</script>
---
<script src="https://unpkg.com/@coyoapp/[email protected]/build/main/index.js"></script>
// Uncaught ReferenceError: exports is not defined
</script>
Posted by Lars Kreisz over 2 years ago
Public certificates for validation on server side
Hello Dev-Team,
We have a plugin customer that hosts Haiilo in private cloud under its own domain and with its own certificates. These certificates will expire in a few days. So far we have been manually downloading them from https://plugins.coyoapp.com analogous to the Haiilo certificates (e.g. https://plugins.coyoapp.com/certificate/coyostaging.com.v3.cert.pem). However, the old certificates are still stored there for the customer.
How do I get the new certificates?
We need this certificate in our server to secure specific endpoints.
Posted by Simon over 1 year ago
OAuth2.0 Token für die Authentifizierung der Anfragen in einem Tenant mit SSO
Basierend auf diese Dokumentationsseite <https://docs.coyoapp.com/restdoc/authentication?version=v37.2.3> braucht man OAuth2.0 Token für jede Anfrage, die man an Coyo App schickt. Den Token bekommt man mithilfe von Username+Passoword des Nutzers, um dann die Anfragen im Namen des Nutzers zu senden. Wie soll man an die Tokens kommen, wenn der Login über SSO eingerichtet ist und die Nutzer keine Konten haben, die in der Haiilo Umgebung verwaltet werden?
Posted by Igli Manaj 6 months ago
Fullscreen on plugin iframe
Hi,
We are currently developing a plugin that can place videos on the page. Now we ran into the problem that the fullscreen mode does not work. If I am not mistaken, the plugin iframe does not allow it.
So I wonder if there is any chance that you can add that attribute to the plugin iframe as you have for common widget iframes?
Best regards,
David
Posted by David Voigt over 1 year ago