Tim Raymond
6a96d2b745
Add test for oauth2.Callback() handler
...
This test ensures that the Callback handler sets a cookie in its
response to the browser when the provider returns a 200
2017-02-17 12:41:14 -05:00
Tim Raymond
cde17a3837
Add test for (*JWTMux).Login()
...
Ensures that state is send properly to Provider.
2017-02-16 17:29:34 -05:00
Tim Raymond
322d14103a
Reorganize OAuth2 Test Helpers
...
Moved all test helper structs and funcs under oauth2/oauth2_test.go
2017-02-16 17:27:55 -05:00
Tim Raymond
6ae180d5e7
Add tests around oauth2.JWTMux
...
Adds a test for Logout() handler.
2017-02-16 16:42:43 -05:00
Chris Goller
cfa4d15efa
Add google OAuth2 principal domain/email test
2017-02-16 13:36:37 -06:00
Chris Goller
06d314598d
Add Github OAuth2 principal email/org tests
2017-02-16 13:26:08 -06:00
Tim Raymond
9a0b4d6251
Configure Mux to use Heroku OAuth2 provider
...
If a --token-secret, --heroku-client-id, and --heroku-secret are
provided to Chronograf, it will add Heroku as an OAuth2 provider. These
tokens can be obtained (as of this writing) by visiting your "manage
account" page, navigating to "Applications," and then clicking "Register
New API Client" under the "API Clients" section.
2017-02-16 12:56:59 -05:00
Tim Raymond
d426193597
Configure Heroku OAuth2 properly
...
This was erroneously left unconfigured during dev.
2017-02-16 12:56:01 -05:00
Tim Raymond
6b9c642699
Add Heroku Oauth2 Provider
...
This adds an Oauth2 Provider for authenticating users against Heroku's
API. In contrast to other Providers, a maintained client library for
interacting with the Heroku API was not available, so direct HTTP calls
are made instead. This follows with their documentation posted here:
https://devcenter.heroku.com/articles/oauth2-heroku-go
2017-02-16 12:05:55 -05:00
Chris Goller
fa36ac6149
Add unified OAuth2 logout route redirecting to provider logout
...
Signed-off-by: Tim Raymond <tim@timraymond.com>
2017-02-15 16:29:13 -06:00
Hunter Trujillo
8b6fd20a7f
OAuth frontend fixes and cleanup.
2017-02-15 13:47:18 -07:00
Chris Goller
4039bfea0c
Add routes for oauth providers
2017-02-15 14:07:33 -06:00
Hunter Trujillo
1e4c7a4d5a
Add frontend support for OAuth changes.
2017-02-15 11:57:52 -07:00
Chris Goller
703af8c3da
Fix go test failures from code moving
2017-02-14 23:38:43 -06:00
Chris Goller
2d691bb694
Add --public-url CLI option to support google oauth redirect uri
2017-02-14 23:34:15 -06:00
Chris Goller
ae5e4edacf
Add google oauth provider. Need redirect_uri
2017-02-14 23:11:11 -06:00
Chris Goller
9c3ffed99e
Remove unneeded authenticator from github
2017-02-14 23:09:34 -06:00
Chris Goller
7f0e61e484
Add Google login button
...
Need to update this eventually to use the dynamic routes
2017-02-14 23:05:03 -06:00
Tim Raymond
1a80a6c4d5
Doc++
2017-02-14 17:28:38 -05:00
Tim Raymond
821552e5f2
Add Name to oauth2.Provider
...
Providers should be able to tell us their name. This will help construct
routes.
2017-02-14 17:28:05 -05:00
Tim Raymond
0b36cedb67
Fix route for links and Github OAuth route
...
On the backend, the trailing slash on /chronograf/v1/ caused that route
to escape detection by the authentication middleware, so auth was not
triggered. Also, routes were changed on the backend for Github's OAuth
authentication.
2017-02-14 17:26:39 -05:00
Tim Raymond
09e8063131
Reorganize OAuth2 Logic
...
Created an oauth2 package which encapsulates all oauth2 providers,
utility functions, types, and interfaces. Previously some methods of the
Github provider were used as http.HandlerFuncs. These have now been
pulled into a concrete type called a JWTMux to implement other Oauth2
providers.
JWTMux has all of the functionality required to take a token from any
provider and store it as a JWT in a browser, and that is the extent of
its responsibilities. It implements the oauth2.Mux interface which would
potentially allow other strategies of oauth2 credential storage.
2017-02-14 16:18:41 -05:00
Tim Raymond
1f44aaa510
Update Makefile for ctags
...
Adds a `make ctags` command to generate Go ctags for editors
2017-02-14 16:18:41 -05:00
Hunter Trujillo
f72d9c6ce5
Fix basepath support.
2017-02-14 10:07:15 -07:00
Hunter Trujillo
ee74b25331
Linter fixes.
2017-02-14 09:55:31 -07:00
Chris Goller
f5ec601e77
WIP
2017-02-13 18:02:43 -06:00
Chris Goller
2b546cb6da
Merge branch 'feature/oauth-google' of github.com:influxdata/chronograf into feature/oauth-google
2017-02-13 18:01:39 -06:00
Hunter Trujillo
97b35a3f03
Add resource and id methods to AJAX method to access link URLs.
2017-02-13 13:19:34 -07:00
Chris Goller
c8474ca66b
WIP
2017-02-13 08:45:37 -06:00
Hunter Trujillo
f5c02f6bce
Merge pull request #872 from influxdata/hotfix/have-blue
...
Update chronograf sources response
2017-02-12 16:24:06 -07:00
Chris Goller
97a2206869
Update chronograf sources response
2017-02-12 16:38:05 -06:00
Chris Goller
e5ce1382bb
WIP
2017-02-12 14:52:21 -06:00
Regan Kuchan
3e904089d5
Merge pull request #871 from influxdata/rk-changelog
...
Update changelog for 1.2.0-beta2
2017-02-10 16:00:10 -08:00
Regan Kuchan
bb1d91ecb0
Update changelog for 1.2.0-beta2
2017-02-10 15:59:21 -08:00
Regan Kuchan
5418c6f334
Merge pull request #861 from influxdata/release-1.2.0-beta2
...
Update docs for 1.2-beta2
2017-02-10 15:37:16 -08:00
Regan Kuchan
901f717cac
Fix merge conflict ii
2017-02-10 15:36:38 -08:00
Regan Kuchan
c9161fd1d9
Add a section on the TICKscript parser
2017-02-10 15:28:02 -08:00
Andrew Watkins
07d6807dcf
Merge pull request #864 from influxdata/http-tcp
...
Kapacitor Rule Alert Config for HTTP, TCP, Exec, SMTP, and Alerta (parsed pasted Tick script)
2017-02-10 15:20:53 -08:00
Hunter Trujillo
2b6206a018
Fix kapacitor rules page checkbox JSX.
2017-02-10 16:09:12 -07:00
Chris Goller
69dea5b0ee
Merge pull request #870 from influxdata/de-empty-states
...
DE Empty State Polish
2017-02-10 17:09:03 -06:00
Hunter Trujillo
07a28ef9a3
Merge branch 'master' into http-tcp
...
# Conflicts:
# CHANGELOG.md
2017-02-10 16:03:30 -07:00
Hunter Trujillo
23f282a05b
Fix AlertaConfig?
2017-02-10 15:59:43 -07:00
Alex P
4bfa5afc4a
Polish empty states in DE query builder
2017-02-10 14:57:30 -08:00
Regan Kuchan
7d0c295570
Add alert rule checkbox feature to README
2017-02-10 14:51:43 -08:00
Chris Goller
e4d9f22713
Merge pull request #869 from influxdata/de-scroll-fix
...
Fix Scrolling Issue on DE Lists
2017-02-10 16:46:10 -06:00
Alex P
5274ed4077
fix non-scrolling behavior on DE editor lists
2017-02-10 14:42:24 -08:00
Chris Goller
321700a04e
Merge pull request #868 from influxdata/disable-alert
...
Change rule status
2017-02-10 16:41:28 -06:00
Regan Kuchan
bbdbb0977a
Fix merge conflicts
2017-02-10 14:36:43 -08:00
Alex P
20dc08c178
Make Checkbox centered
2017-02-10 14:35:58 -08:00
Alex P
7b054da3c0
Style checkboxes on kapacitor rules table
2017-02-10 14:32:22 -08:00