Michael Desa
ffdba45242
fix(influxdb): special case the orgs resource when generating permissions
2019-01-16 15:26:40 -05:00
Michael Desa
c60031a6b7
fix(influxdb): change resource to resource type
2019-01-15 12:57:57 -05:00
Michael Desa
944de4157a
fix(influxdb): add org id to permissions
...
filter out resources that have mission IDs
fix(influxdb): simplify auth check in PermissionAllowed
review(platform): update as noted in review
fix(influxdb): ensure permission has valid org id
2019-01-11 12:23:28 -05:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Michael Desa
bef148ffd2
fix(platform): check for matching ids when permission matching
2019-01-09 11:16:02 -05:00
Michael Desa
6f0d55d19e
feat(platform): add constructor for org member and admin permssions
2019-01-09 10:35:21 -05:00
Andrew Watkins
3429e8d0c6
feat(auth): rewrite authorization service ( #2157 )
...
* feat(view-token-overlay): add view token overlay
* test(tokens): update tests
* chore(auths): rename mock data file
* feat(token-view): clicking on description opens token view modal
* feat(token-view): add ability to close overlay
* feat(token-view): display token permissions with updated permissions shape
* feat(token-view): wip update authorization and permission shapes
* feat(auth): wip refactor auth permissions
* fix(auth): generate permissions via functions
* fix(auth): make Id ID
* chore(types): update generated client
* feat(auth): wip add user and org names to auth
* fix(user): didnt save rebase
* feat(auth): WIP refactor auth
* feat(auth): check for user existence during auth creation
* feat(auth): org must exist during auth creation
* fix(auth): pluralize telegrafs resource type
* docs(http): update swagger definition for the Authorization
* test(auth): fix broken tests
* docs(swagger): update cur_swagger Authrorizations
* fix(api): remove trace from cur_swag
* test(ui/token): update components with new generated type definitions
* feat(http): add lookup service adding names for permissions
* fix(http): remove debugging panics
* chore: go tidy
* fix: unsaved rebase
* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Michael Desa
81d1520dc6
fix(platform): keep authorization struct on proxy query request
...
As a result of pr https://github.com/influxdata/platform/pull/1494 , idpe
broke. This PR undoes some of the work done from that PR, but fixes the
underlying issue with #1494 .
2018-11-20 15:20:51 -08:00
Kelvin Wang
74ef984e53
add http for telegraf
2018-10-30 14:00:10 -04:00
Michael Desa
42ba7ffe11
feat(http): add authentication handler middleware
2018-10-02 14:11:44 -04:00
Michael Desa
1a0c29ad34
feat(platform): add authorizer interface
...
This iterface is supposed to be something that both sessions and
authorizations can share so that other components can authorize requests
as they see fit.
2018-10-02 14:11:44 -04:00