Kegan Dougal
17d799320e
Add RedirectURL param when requesting GH auth sessions
8 years ago
Kegan Dougal
bfc5c8dd7f
Add LOG_DIR env var
8 years ago
Kegan Dougal
0e9411e559
s/Session/Info/ given it isn't an AuthSession object
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
2a93bbee82
Comments
8 years ago
Kegan Dougal
44abae4977
Make StarterLink a property of the AuthRealm
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
cb0fcbf2ad
s/GET/POST/
8 years ago
Kegan Dougal
4c340dd016
s/GET/POST/
8 years ago
Kegan Dougal
5bccd52190
Add StarterLink as a field to the Github Service config
Use it verbatim in the responses to !commands when the caller has not authed
with Github.
8 years ago
Kegan Dougal
0dd4d357ce
Bring out expand/cmd into stand-alone functions
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
d3ecdc0662
Add endpoint to GET a Service config
8 years ago
Kegan Dougal
df6c8e1027
Return 200 on success
8 years ago
Kegan Dougal
1723763377
Comments
8 years ago
Kegan Dougal
5d08ba7368
Handle incoming JIRA webhook requests
8 years ago
Kegan Dougal
e4b0121b31
Add JIRARealm.HasWebhook and set it on webhook creation
8 years ago
Kegan Dougal
69f65321d6
Move out project key to realm ID mapping
8 years ago
Kegan Dougal
684d54d6b4
Implement JIRA webhook creation
Also start including unauthorised webhook creation semantics, though not
finished yet. Change the config format of `JIRAService` to make more sense
and allow multiple realms per room.
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
5026b90b52
Create services with JSON by default
8 years ago
Kegan Dougal
514aab3c61
Create realms with JSON by default
8 years ago
Kegan Dougal
f7fd2d679f
Use the RealmID in the Service rather than all of them
8 years ago
Kegan Dougal
37094acfb3
Implement JIRA issue expanding
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
c6483215f6
Twiddle order of test table fields
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
Kegan Dougal
32ebe92535
Pass in the webhook endpoint URL for each service
Get the base URL from an env var 'BASE_URL' and pass it through to CreateService.
8 years ago
Kegan Dougal
cc0325f4ff
Explain what the ping event does
8 years ago
Kegan Dougal
4b41bfb484
Add TODO for order of operations
8 years ago
Kegan Dougal
28f26e61dd
Formatting
8 years ago
Kegan Dougal
33b5abb84b
Add Service.PostRegister(oldService) and implement GH webhook creation
- `PostRegister` is called after the new Service is stored in the database.
It exists so Services can do post-creation actions like hit remote services
using information from old services, if any.
- The `GithubService` uses the `PostRegister()` function to remove old webhooks.
8 years ago
Kegan Dougal
d8cce6367f
Change github service config format to include owner/repo filtering on webhooks
8 years ago
Kegan Dougal
b89c3ef776
Length check the ownerRepo array
8 years ago
Kegan Dougal
8beb8fda7f
Implement `!github create owner/repo title`
8 years ago
Kegan Dougal
55fda3c115
Grab access tokens from the GithubService and use them
Currently only an authenticated client is used to lookup expansion issues.
8 years ago
Kegan Dougal
55f857db96
Add Register() function to Services
Fix plugin_tests and make them a bit more intelligible.
8 years ago
Kegan Dougal
f15afa4780
Use non-panicking type assertion
8 years ago