Nikos Filippakis
6409b00205
[WIP] Switch Gomatrix for Mautrix ( #322 )
* Switch core functionality to Mautrix
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Convert and re-enable rssbot
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Convert and re-enable giphy service
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Convert and re-enable wikipedia, imgur and guggy services
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Convert and re-enable Github realm and service, and update go-github
version
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Convert and add the rest of the services
Re-enables the services: alertmanager, google, jira, slackapi, travisci
Signed-off-by: Nikos Filippakis <me@nfil.dev>
5 years ago
Nikos Filippakis
1e297c50ad
Re-format project as a Go module ( #310 )
* Define project as a Go module and update dependency versions
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Update docs, configs and dockerfile to use latest Go version
Signed-off-by: Nikos Filippakis <me@nfil.dev>
* Add postgres database driver
Signed-off-by: Nikos Filippakis <me@nfil.dev>
5 years ago
Michael Kaye
2938b1bd22
Make golint happy
6 years ago
Kegan Dougal
a1fa5c3cac
Add realm documentation
- Add godoc for realms
- Remove realm info from README
8 years ago
Kegan Dougal
233e85eeee
Add redirect URL for JIRA auth
8 years ago
Kegan Dougal
34eca3984f
List possible GH repos on /getSession
Add an Info() method to pull out info about an auth session.
8 years ago
Kegan Dougal
4ea8e6d49d
Add JIRA starter links
8 years ago
Kegan Dougal
2a3b56a1dc
Return a specific not found error message when the user hasn't authed with JIRA
8 years ago
Kegan Dougal
b3ff1cd54a
Add endpoint for GETing AuthSession information for a user/realm tuple
Add a new `AuthSession` function `Authenticated()` which returns `true` if the
user has completed the auth process. This allows the caller to distinguish
between:
- Never done any auth (404s)
- In the process of doing auth (`Authenticated == false`)
- Finished doing auth (`Authenticated == true`)
8 years ago
Kegan Dougal
e4b0121b31
Add JIRARealm.HasWebhook and set it on webhook creation
8 years ago
Kegan Dougal
5e37053e63
Kill dangling brackets
8 years ago
Kegan Dougal
1887fc303c
Add an Init() function to AuthRealms
8 years ago
Kegan Dougal
f7fd2d679f
Use the RealmID in the Service rather than all of them
8 years ago
Kegan Dougal
52f3fc853d
More inlining
8 years ago
Kegan Dougal
f928b4c84e
Review comments
8 years ago
Kegan Dougal
8937e031c0
Implement processing of !jira create commands
This involves looking up JIRA realms and then auth sessions for the user.
Does not handle starter links yet.
8 years ago
Kegan Dougal
ca798c94ea
Inline some err/if checks
8 years ago
Kegan Dougal
7e047e68be
Finish implementing auth in JIRA. Access tokens are now stored.
Added redirectURL to the factory function for AuthRealms.
8 years ago
Kegan Dougal
4fdc0c3912
Add JIRA session and requests for OAuth. Redirect not handled yet.
8 years ago
Kegan Dougal
59f7fd12a3
Formalise the response JSON to /configureAuthRealm for JIRA
8 years ago
Kegan Dougal
513c9318fb
Allow the creation of [un]authenticated JIRA clients
8 years ago
Kegan Dougal
d82036adda
Parse messy JIRA URLs into a canonicalised format
8 years ago
Kegan Dougal
5e375283c2
Remove password TODO
8 years ago
Kegan Dougal
a0d3180ba8
Parse out the public key
8 years ago
Kegan Dougal
0948f59a1a
Add JiraRealm type. Add Register() function to AuthRealms
Verify that PrivateKeyPEM is indeed a PEM formatted block in Register()
8 years ago