3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services/contexthandler
Jo c2d3c90bc8
Auth: Implement Token URL JWT Auth ()
* Auth: check of auth_token in url and resolve user if present

* check if auth_token is passed in url

* Auth: Pass auth_token for request if present in path

* no need to decode token in index

* temp

* use loadURLToken and set authorization header

* cache token in memory and strip it from url

* Use loadURLToken

* Keep token in url

* strip sensitive query strings from url used by context logger

* adapt login by url to jwt token

* add jwt iframe devenv

* add jwt iframe devenv instructions

* add access note

* add test for cleaning request

* ensure jwt token is not carried into handlers

* do not reshuffle queries, might be important

* add correct db dump location

* prefer set token instead of cached token

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2022-07-27 16:10:47 +02:00
..
authproxy Fix: Choose Lookup params per auth module () () 2022-07-15 10:21:09 +01:00
ctxkey pkg/web: restrict handler types () 2022-05-20 12:45:18 -04:00
auth_jwt.go Auth: Implement Token URL JWT Auth () 2022-07-27 16:10:47 +02:00
auth_proxy_test.go Chore: Move user errors to user service () 2022-07-20 14:50:06 +02:00
contexthandler_test.go Chore: replace macaron with web package () 2021-10-11 14:30:59 +02:00
contexthandler.go Chore: Move user errors to user service () 2022-07-20 14:50:06 +02:00