Commit Graph

6 Commits (f1f65d0b419e9c60b90c5b8074a2c2395499e510)

Author SHA1 Message Date
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
Chris Goller d1359c09b3 Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
Chris Goller 110376d0af Update to chronograf from mrfusion 2016-10-20 18:01:14 -05:00
Chris Goller 01c2a1ee93 Add Github OAuth, JWT cookie values, and principal in context. 2016-10-20 17:51:44 -05:00
Chris Goller c2fa11c28c Update layouts to use ID generation. 2016-10-10 21:00:49 -05:00
Chris Goller f782284358 Update layout to use uuid v4 string as ID parameter. 2016-10-10 17:08:52 -05:00