Jo
914daef0fd
Auth: Add request context to UserInfo calls ( #70007 )
...
* use context for UserInfo requests
* set timeouts for oauth http client
* Update pkg/login/social/common.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-06-14 14:30:40 +02:00
Misi
9c98314e9f
OAuth: Refactor OAuth parameters handling to support obtaining refresh tokens for Google OAuth ( #58782 )
...
* Add ApprovalForce to AuthCodeOptions
* Extract access token validity check to a function
* Refactor
* Oauth: set options internally instead of exposing new function
* Align tests
* Remove unused function
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2022-11-18 10:12:17 +01:00
Karl Persson
6e3cb2e3ed
Oauth: Remove unused function for oauth implementations ( #58887 )
...
* Oauth: remove unused function
* Oauth: remove unused Oauth types
2022-11-17 15:03:15 +01:00
Arve Knudsen
c2cad26ca9
Chore: Disable default golangci-lint filter ( #29751 )
...
* Disable default golangci-lint filter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Chore: Fix linter warnings
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-12-15 09:32:06 +01:00
Alexander Zobnin
7afdfd2ef4
Okta OAuth provider (team sync support) ( #22972 )
...
* Okta OAuth support
* Chore: fix linter error
* Chore: move IsEmailAllowed to SocialBase
* Chore: move IsSignupAllowed to SocialBase
* Chore: review fixes
* Okta: support allowed_groups
* Okta: default config
* Chore: move extractEmail() to OktaClaims struct
* Chore: review fixes
* generic_oauth_test: Handle error cases
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* generic_oauth_test: Handle error cases
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Docs: Okta OAuth
* Chore: don't return expected errors from searchJSONForAttr
* Docs: role mapping
* Chore: review fixes (searchJSONForAttr)
* Docs: review fixes
* Update docs/sources/auth/okta.md
Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com >
* Update docs/sources/auth/okta.md
Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com >
* Chore: log error if searchJSONForAttr failed
* Docs: add Okta login link
* Docs: review fixes
* Docs: add reference to the org roles
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-04-02 17:35:48 +03:00
bergquist
60fef31748
moves social package to /login
...
ref #14679
2019-02-25 15:30:40 +01:00