Open DHaussermann opened 2 years ago
FYI: This error is thrown when an authenticated request is made to an API endpoint of the apps plugin: https://github.com/mattermost/mattermost-plugin-apps/blob/2f6900c918e02a01d19bc0c03671c8229109240b/server/httpin/handler.go#L127-L131
@hanzei I was on a call with @DHaussermann when this error happened. His ServiceNow App was running through ngrok, so we were able to inspect the request/response. The call request to the ServiceNow App indeed contained the acting_user_access_token
in the provided context
, and we are creating an client via appclient.AsActingUser(creq.Context)
here just before this error is returned from the App.
Since the Apps plugin determined that the Mattermost-User-Id
header is blank, I assume this has something to do with the access token being rejected by the MM server. I'm not sure what factors could cause this to happen though.
Once I have service now installed, when I try to configure the oAuth, I see an error suggesting I do not have permission top store the data.
This issue is intermittent when testing on multiple servers
Steps:
/cloud
running master branch of serverv1.0.0
release from version bump PRObserved: Authorization error and credentials did not save