Kegsay
d7e7b9b1ae
Merge pull request #3 from matrix-org/kegan/auth
Add skeleton for auth modules
9 years ago
Kegan Dougal
6b250c8528
Merge branch 'master' into kegan/auth
9 years ago
Kegsay
72a08baba2
Merge pull request #4 from matrix-org/kegan/webhook-path-as-id
Use the service ID in the webhook path instead of the service type
9 years ago
Kegan Dougal
fe1854feaf
Use the service ID in the webhook path instead of the service type
This means we can load the Service from the database then invoke
OnIncomingWebhook on it, rather than load up a new Service.
9 years ago
Kegan Dougal
8fea4bb0ab
Add AuthModule concept
- Register them like we are with Services.
- Add `/configureAuth` endpoint to create/update auth.
- Move ThirdPartyAuth out of the database layer since they are passed as
params to `/admin/configureAuth`
9 years ago
Kegan Dougal
514d59e4d5
Remove Service ID from ThirdPartyAuth; query off resource instead.
This de-couples ThirdPartyAuth from Services so we can do auth without having
to instantiate Services.
9 years ago
Kegan Dougal
272617170d
Merge branch 'master' into kegan/auth
9 years ago
Kegan Dougal
e8be9c4a10
More notes
9 years ago
Kegan Dougal
1d08fcbb18
Add LoadThirdPartyAuthsForUser and StoreThirdPartyAuth
9 years ago
Kegan Dougal
cdee3d1a51
Add ThirdPartyAuth struct and third_party_auth table with CRU operations
9 years ago
Kegsay
e6813169b8
Merge pull request #2 from matrix-org/kegan/webhooks
Add a webhook handler and parse incoming Github webhook events
9 years ago
Kegan Dougal
41ba67235a
Add handler for /services/hooks/{serviceType}
Defers through to the given service's OnReceiveWebhook method.
9 years ago
Kegan Dougal
0168f92023
Add tests for webhook event parsing to HTML
9 years ago
Kegan Dougal
665d43f726
Parse github webhook requests into suitable HTML messages
Verifies requests using an optional secret token. This commit doesn't
implement sending of these messages.
9 years ago
Kegan Dougal
edf3f87674
Move database/types.go to types/types.go in its own 'types' package
There is nothing specific to the types to warrant them being under the database
package.
9 years ago
Kegsay
7dda10503b
Merge pull request #1 from matrix-org/kegan/github
Add a github service with issue/PR expansion
9 years ago
Kegan Dougal
d6b946f200
Make regexp top-level as per PR comments
9 years ago
Kegan Dougal
9cdd546ba6
Remove spurious !github command
9 years ago
Kegan Dougal
19fd719e20
Merge branch 'master' into kegan/github
9 years ago
Kegan Dougal
e1f568e3fb
Put notes somewhere useful
9 years ago
Kegan Dougal
01e51f36a9
Add github issue expansion for things that look like owner/repo#11
9 years ago
Kegan Dougal
b808c4155a
Merge branch 'master' into kegan/github
9 years ago
Kegan Dougal
4896620287
Add OAuth2 dep
9 years ago
Kegan Dougal
c92fc3c19e
Merge branch 'master' into kegan/github
9 years ago
Kegan Dougal
81818829c8
Add github dep
9 years ago
Kegan Dougal
7f0af81330
Add very noddy github service. Add owner/repo#11 expander.
9 years ago
Kegan Dougal
8af5086985
s/Make/New/ as is the convention in the golang stdlib
9 years ago
Mark Haines
26f95fdeb8
Add the pre-commit hooks and development instructions
9 years ago
Mark Haines
65dbf1951a
Add build instructions
9 years ago
Mark Haines
01e826955e
Fix hypenation of go-neb in README
9 years ago
Mark Haines
9c83637852
An extensible Matrix bot written in Go
9 years ago