mattermost / mattermost-plugin-github

GitHub plugin for Mattermost
Apache License 2.0
157 stars 148 forks source link

GitHub plugin issues on community after switching to SSO #809

Open wiggin77 opened 1 month ago

wiggin77 commented 1 month ago

After the org’s SSO switch, the LHS counts for the GH plugin were not showing. It seems there is a problem with continuing use of the OAuth token. Reconnecting fixes the issue, though users that have not reconnected cause this error in the logs:

{

"msg":"Failed to search for assignments",

"error":"GET https://api.github.com/search/issues?q=is%3Aopen++archived%3Afalse+org%3Amattermost: 422 Validation Failed [{Resource:Search Field:q Code:invalid Message:The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.}]"

}

Potential solution

Jira: https://mattermost.atlassian.net/browse/MM-52262