Commit Graph

10 Commits (9037c92b89de6bc49475dba1fd5d4bf882e3a8ac)

Author SHA1 Message Date
Pavel Zavora 40f7d398ff feat(oauth/github): allow to specify URL for github enterprise 2021-03-29 21:02:34 +02:00
Pavel Zavora 0e8a36b669 chore: move randomString fn out of github oauth2 provider 2021-03-27 10:11:02 +01:00
Joshua Hoblitt 571731cec5 fix github org pagination when user has > 10 orgs (#5265)
* fix github org pagination when user has > 10 orgs

* rm duplicate 1.7.13 CHANGELOG

* add #5265 to CHANGELOG
2019-09-20 15:53:13 -07:00
Brandon Farmer 944402e1a3 Use go modules, update flux 2019-04-11 16:14:36 -07:00
Jonathan A. Sternberg 43c5afe70e Fix the github oauth2 implementation with multiple emails
If an account had multiple emails, the current implementation would
always select the first one regardless of any other settings. This fixes
it so it only chooses the primary email address that is verified.

This also fixes the generic oauth2 to require verified and primary to be
true if they are present. If they are not present, they are not
required.
2018-04-11 13:27:15 -05:00
Michael Desa 2e694aee4c Use github group login for mapping 2018-01-10 16:38:55 -05:00
Michael Desa 8dc60c21ff Add group to oauth2.Principal 2018-01-10 15:56:13 -05:00
Chris Goller 3eb39d85a8 Remove unneeded authenticator from github 2017-02-14 23:09:34 -06:00
Tim Raymond f01e3b18fe 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 d07c7ca1d6 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