Radpidpro authentication issue

hello @marc @diana @jkuester
am testing my flow in the simulator and running into

**POST /api/v1/sms/radpidpro/incoming-messages HTTP/1.1
Host: chtsa.uwdigi.org
User-Agent: RapidProMailroom/9.3.3
Content-Length: 146
Accept: application/json
Authorization: Token 8ea5b71a8826db62c4c88c54289bced5007c54e5
Content-Type: application/json
X-Mailroom-Mode: simulation
Accept-Encoding: gzip

{"content":"AUTOMATED UPDATE from HealthJam: Client joined LUNCH message group","from":"+12065551212","id":"c6a3512d-e57b-49ef-80ef-4589a22a11a1"}
HTTP/1.1 403 Forbidden
Transfer-Encoding: chunked
Connection: keep-alive
Content-Security-Policy: default-src 'none'; font-src 'self'; manifest-src 'self'; connect-src 'self' https://staging.dev.medicmobile.org/_couch/builds/ maps.googleapis.com; child-src 'self'; form-action 'self'; img-src 'self' data: blob: *.openstreetmap.org; media-src 'self' blob:; script-src 'self' 'sha256-B5cfIVb4/wnv2ixHP03bHeMXZDszDL610YG5wdDq/Tc=' 'unsafe-eval' 'unsafe-hashes' 'sha256-2rvfFrggTCtyF5WOiTri1gDS8Boibj4Njn0e+VCBmDI='; style-src 'self' 'unsafe-inline'
Content-Type: application/json; charset=utf-8
Date: Mon, 12 Aug 2024 14:53:16 GMT
Etag: W/"31-rAJCBu9xLzGc+m/mZ6AGEjWyWrM"
Server: nginx/1.13.6
Strict-Transport-Security: max-age=15552000; includeSubDomains
Vary: Accept-Encoding
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Dns-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{"code":403,"error":"No incoming key configured"}**

From what I can tell the credentials aren’t set up on that 3.16.1 instance. What happens when you use password auth instead?

Also, I don’t think this relates directly to your original post here, so worth moving these last comments to a new thread.

thanks @marc you mean in the global properties for the cht_url being used in the webhook?

Not getting you well on this , you mean in the webhook headers ie <password auth> : <value>

Hi @cliff

Did you add your rapidpro:incoming key to the config?
This should cover how do add this property depending on your CHT version RapidPro Messaging Gateway | Community Health Toolkit

thanks @diana
i have added

"sms": {
      "outgoing_service": "rapidpro",
      "rapidpro": {
        "url": "https://textit.com/"
      }
    },

in the app settings file and also added the credentials
Where is the config do i add rapidpro:incoming because in the docs its not quit clear .
Using 3.16 verison

Hi @cliff

I believe for 3.x this is the documentation you have to follow: API to interact with CHT Applications | Community Health Toolkit

1 Like