From 200f194316639e6637a98f1bd2503c942f5e4387 Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Mon, 18 Sep 2017 21:53:49 +0100
Subject: [PATCH] a

---
 pkg/api/doc.go | 45 +++++----------------------------------------
 1 file changed, 5 insertions(+), 40 deletions(-)

diff --git a/pkg/api/doc.go b/pkg/api/doc.go
index db029a2..9493746 100644
--- a/pkg/api/doc.go
+++ b/pkg/api/doc.go
@@ -15,7 +15,11 @@ limitations under the License.
 
 package api
 
-import "time"
+import (
+	"fmt"
+	"strconv"
+	"time"
+)
 
 // Resource represents a url resource to protect
 type Resource struct {
@@ -293,42 +297,3 @@ type storage interface {
 	// Close is used to close off any resources
 	Close() error
 }
-
-// reverseProxy is a wrapper
-type reverseProxy interface {
-	ServeHTTP(rw http.ResponseWriter, req *http.Request)
-}
-
-// userContext represents a user
-type userContext struct {
-	// the id of the user
-	id string
-	// the email associated to the user
-	email string
-	// a name of the user
-	name string
-	// the preferred name
-	preferredName string
-	// the expiration of the access token
-	expiresAt time.Time
-	// a set of roles associated
-	roles []string
-	// the audience for the token
-	audience string
-	// the access token itself
-	token jose.JWT
-	// the claims associated to the token
-	claims jose.Claims
-	// whether the context is from a session cookie or authorization header
-	bearerToken bool
-}
-
-// tokenResponse
-type tokenResponse struct {
-	TokenType    string `json:"token_type"`
-	AccessToken  string `json:"access_token"`
-	IDToken      string `json:"id_token"`
-	RefreshToken string `json:"refresh_token,omitempty"`
-	ExpiresIn    int    `json:"expires_in"`
-	Scope        string `json:"scope,omitempty"`
-}
-- 
GitLab