Commit Graph

12 Commits (8833b94651ba0ffdd5760d771e0c949b0a4bb772)

Author SHA1 Message Date
Jonathan A. Sternberg 18c3c2320e 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
Benjamin Schweizer 335d8dbb99 Merge branch 'master' of https://github.com/influxdata/chronograf 2018-03-28 13:30:05 +02:00
Michael Desa 5da992ae27 Use Generic APIKey for Oauth2 group lookup 2018-02-22 12:54:20 -05:00
Benjamin Schweizer 227009723d merged upstream, updated comments, added GroupFromClaims() 2018-02-20 09:47:42 +01:00
Michael Desa b5a0080546 Add group to oauth2.Principal 2018-01-10 15:56:13 -05:00
Benjamin Schweizer 0f9fb94e42 go fmt + got vet 2017-12-13 09:13:11 +01:00
Benjamin Schweizer c291cd01b5 handle extra id_token in callback 2017-12-10 18:33:50 +01:00
Chris Goller 0e72c0d16b Add GENERIC_API_KEY to override of oauth2 responses to support azure 2017-11-21 16:55:03 -06:00
Kent Wang a231e9f942 Add redirect url to generic oauth 2017-06-16 17:35:57 +08:00
Chris Goller bbf6c1300c Add configurable scopes to generic oauth2 support 2017-04-07 14:58:35 -05:00
Chris Goller 862e2132b6 Add renaming of generic oauth2 provider 2017-04-06 16:45:13 -05:00
Chris Goller 94afc97beb Add implementation of generic oauth2 provider based on github concepts 2017-04-06 10:19:07 -05:00