Michael Desa
2d7828b602
Nest user routes under organization
...
Add global user routes
2018-01-16 16:45:58 -05:00
Michael Desa
b360591cb9
Add rawUsers route to AllLinks
2018-01-10 11:18:08 -05:00
Michael Desa
2151413ece
Add /chronograf/v1/env endpoint to expose env vars
...
Some environment variables are needed by the front end. This PR
introduces a route so that those environment variables can be exposed.
Additionally, a new environment variable TELEGRAF_SYSTEM_INTERVAL was
added. This env var controls the rate at which the host list page will
update its red/green status.
2018-01-03 11:52:40 -08:00
Jared Scheib
5c813493ea
Add config.self & config.auth routes, update client routes & make PATCH a PUT
2017-12-13 13:54:23 -08:00
Jared Scheib
5038f8532b
Add /config link to AllRoutes handler
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-12-12 15:11:30 -08:00
Jared Scheib
cd719805ed
Add organizations and users routes to allRoutes
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-01 12:59:07 -04:00
Jared Scheib
578bf89c97
Pass through CustomLinks error message directly
2017-06-26 18:02:22 -05:00
Jared Scheib
ca239d037d
Move external links structs to links.go
2017-06-26 16:13:23 -05:00
Jared Scheib
a723ef8ae1
Use appropriate error when NewCustomLinks fails
2017-06-26 15:44:56 -05:00
Jared Scheib
6dedf77add
Comment CustomLink struct
2017-06-26 15:43:03 -05:00
Jared Scheib
ede2476837
Change 'Url' prop key to 'URL' to satisfy Go convention
2017-06-26 15:42:36 -05:00
Jared Scheib
799dc64ea4
Update comment for ServeHTTP to mention External Links
2017-06-26 15:35:42 -05:00
Jared Scheib
90aaa8104d
Refactor CustomLinks transform into routes.go and new links.go
...
Rename generateCustomLinks to NewCustomLinks
Handle error from NewCustomLinks per app convention
2017-06-26 15:30:33 -05:00
Jared Scheib
7d6eaf925a
Generate custom links from env var and multiple CLI flags
...
Signed-off-by: Chris Goller <goller@gmail.com>
2017-06-26 11:48:47 -07:00
Jared Scheib
613dcc64ac
WIP Parse custom links from CLI
2017-06-23 15:12:02 -07:00
Jared Scheib
c8c3f6108c
Comment new StatusFeed member of AllRoutes
2017-06-15 17:55:46 -07:00
Jared Scheib
7e359239e5
Refactor statusFeedURL to be set in CLI 'default'
...
Reverts to a clean separation of concerns between mux.go vs AllRoutes
AllRoutes now expects a StatusFeed url directly
2017-06-15 13:51:22 -07:00
Jared Scheib
f4ea8fc7b5
Remove unused fragment
2017-06-14 13:51:08 -07:00
Jared Scheib
25bde527a6
Add status-feed-url build flag within new externalLinks prop in AllRoutes
2017-06-13 13:40:20 -07:00
Jared Scheib
6806f62ac0
Refactor /chronograf/v1 to not return logoutLink if not using auth
...
Use logoutLink to determine if logout menu item is shown
Signed-off-by: Chris Goller <güllère@gmail.com>
2017-05-30 17:34:55 -07:00
Tim Raymond & Jared Scheib
337c7b16a5
Fix OAuth when using Basepath
...
Updated the logout link in the UI to use a link provided by the
/chronograf/v1/ endpoint. We also replaced many instances of string
concatenation of URL paths with path.Join, which better handles cases
where prefixed and suffixed "/" characters may be present in provided
basepaths. We also refactored how Basepath was being prefixed when using
Auth. Documentation was also updated to warn users that basepaths should
be applied to the OAuth callback link when configuring OAuth with their
provider.
2017-05-08 14:40:50 -07:00
Chris Goller
46b1a08aa5
Merge branch 'master' into feature/#54-tr-enterprise-client
...
Conflicts:
Makefile
chronograf.go
server/routes.go
server/users.go
2017-02-23 23:26:09 -06:00
Chris Goller
c29b9fc3cb
Add permissions endpoint to get all possible permission strings
2017-02-19 14:00:34 -06:00
Tim Raymond
0ebe675f6e
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
Chris Goller
2017944b68
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
Chris Goller
7e28642e8c
Add routes for oauth providers
2017-02-15 14:07:33 -06:00
Jade McGough
7599369eed
add dashboards interface/structs
2016-12-07 16:31:22 -08:00
Will Piers
d3da8998e8
Add users endpoints/storage plus me endpoint
2016-11-21 14:19:57 -07:00
Chris Goller
d6a067427b
Fix mux paths to be hardcoded; clarify server start; fix golint
2016-10-28 11:27:06 -05:00
Chris Goller
d1359c09b3
Refactor to remove autogenerated code.
2016-10-26 22:10:52 -05:00