Integration with notifo

Hi,
I’d like to integrate into my squidex docker installation notifo, but haven’t found an integration guide. Is there a link with a short guide?
Thank you

Federica

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ X] Documentation issue or request

Environment

  • [X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Hi,

as I said: I have brought the previous notification system back. You can use that. If you still want to use notifo, I am more than happy to support you with that.

Step 1:

Install Notifo. There is no documentation for that, but you will see many similarities to Squidex:

There are 3 important settings:

  1. The BaseURl (URLS__BASEURL)
  2. The Mongo ConnectionString (STORAGE__MONGODB__CONNECTIONSTRING)
  3. The users: https://github.com/notifo-io/notifo/blob/main/backend/src/Notifo/appsettings.json#L230

You can use the docker image for that: https://hub.docker.com/r/squidex/notifo

Step 2: Create a new App in Notifo which is like project

Step 3: Configure Squidex

See the following settings: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L185

  1. APP ID (1)
  2. API Key (2)

Thats it. You should see that squidex creates the users in notifo then. Your users also have to login again to get the notifo token.

Hi Sebastian,
I understand that you brought the previous notification system back and I will use it for a project, but I’d like to use notifo for another project because I think notifo is the best solution.

Thanks for the guide

1 Like

Hi,

how is it going? Can I support you with something?

Hi,
I set up the enviroments variable into Squidex.
I would need confirmation regarding the variables. I set these NOTIFO_API_KEY NOTIFO_APP_ID NOTIFO_API_URL, is that correct?

Thanks,
Federica

No, they are

NOTIFO__APIKEY
NOTIFO__APPID
NOTIFO__APPURL

Hi,
We followed the instructions but squidex did not create users in notification.
There are two API Key Admin and API Key WebManager and we took the former as per directions.
I haven’t found any changes within squidex. The notification section at the top right for users has not appeared.

Thanks,
Federica

You have to go the admin section -> EventConsumers and the restart the HistoryConsumer

I have an error.
{“logLevel”:“Error”,“action”:“RegisterToNotifo”,“status”:“Failed”,“details”:“HTTP Response: \n\n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}\n\nNotifo.SDK.NotifoException: The HTTP status code of the response was not expected (401).\n\nStatus: 401\nResponse: \n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}\n at Notifo.SDK.EventsClient.PostEventsAsync(String appId, PublishManyDto request, CancellationToken cancellationToken)\n at Squidex.Domain.Apps.Entities.History.NotifoService.HandleEventsAsync(IEnumerable\u00601 events) in /src/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs:line 198”,“timestamp”:“2021-12-09T10:31:03Z”,“app”:{“name”:“Squidex”,“version”:“5.9.0.0”,“sessionId”:“ba7723fa-7560-462f-bb34-9ad59b3b15d6”},“exception”:{“type”:“Notifo.SDK.NotifoException”,“message”:“The HTTP status code of the response was not expected (401).\n\nStatus: 401\nResponse: \n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}”,“stackTrace”:" at Notifo.SDK.EventsClient.PostEventsAsync(String appId, PublishManyDto request, CancellationToken cancellationToken)\n at Squidex.Domain.Apps.Entities.History.NotifoService.HandleEventsAsync(IEnumerable\u00601 events) in /src/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs:line 198"}}

Thats good, then you cannot authenticate. You have to use API Key Admin

IYes, I’m using the first one. There are two in the “Your API Credentials” screen

And the APP_ID is also correct?

if you want, you can give me your access to your notifo setup and I try to connect my local instance with it. Just send me a username and password.

Thanks you!
I wanted to invite you as an admin using the “hello” mail but I suppose I have to configure the sending of notifo emails. I saw that the file requires a configuration with Amazon SeS. It’s ok, but I was wondering if I could also use a different service, eg. on premis.

It doesn’t seem to me that I can create contributors by setting by admin or change the password of the created users.

Federica

I mean to invite me to notifo: You an add me as an admin and then delete me later: https://github.com/notifo-io/notifo/blob/main/backend/src/Notifo/appsettings.json#L230

At the moment, notifo has no user management yet.

I saw that the file requires a configuration with Amazon SeS. It’s ok, but I was wondering if I could also use a different service, eg. on premis.

Not sure what you mean with “file”, but notifo supports several email providers. You can have a look to the integration section in the UI.

Hi,
I have set these variables IDENTITY__USERS__1__EMAIL and IDENTITY__USERS__1__PASSWORD on my env to create a second admin, but the system seems to save the old passwords and the
previous users (I had also dropped the Notifications collection from mongo).
I have also set up a custom smpt but when I invite a contributor the email is not sent
Where is my mistake?

Federica

I have set these variables IDENTITY__USERS__1__EMAIL and IDENTITY__USERS__1__PASSWORD on my env to create a second admin, but the system seems to save the old passwords and the

You have restarted notifo, right? I have also configured notifo like this:

        - name: IDENTITY__USERS__0__EMAIL
          value: ...
        - name: IDENTITY__USERS__0__PASSWORD
          value: ...
        - name: IDENTITY__USERS__1__EMAIL
          value: ...
        - name: IDENTITY__USERS__1__PASSWORD
          value: ...
        - name: IDENTITY__USERS__2__EMAIL
          value: ...
        - name: IDENTITY__USERS__2__PASSWORD
          value: ...

save the old passwords and the
previous users (I had also dropped the Notifications collection from mongo).

Why have you done this? Notifications collection is not relevant.

I have also set up a custom smpt but when I invite a contributor the email is not sent
A contributor to Squidex or notifo? Notifo is not used for invite emails right now.

We can also have a screen sharing session to get it working for you.

Hi,
I have attached the API credentials. to connect with squidex (it is a stage env)

URL https://siscom-notifo-stage.regione.sardegna.it/

How likely is it, that I can enter the value properly in my config file if I have a screenshot? :wink: