From dad842326d62019711b84bf1133637705b39c87a Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Mon, 11 Apr 2016 01:15:05 +0100
Subject: [PATCH] - adding the gitlab vars

---
 .gitlab-ci.yml | 7 +++----
 handlers.go    | 3 +--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 35c7efe..971ebef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,8 @@
-#
-#  vim:ts=2:sw=2:et
-#
-
 variables:
   REGISTRY: quay.io
+  REGISTRY_AUTHOR: ukhomeofficedigital
+  REGISTRY_EMAIL: gitlab@digital.homeoffice.gov.uk
+  REGISTRY_USER: ukhomeofficedigital+gitlab
   NAME: go-keycloak-proxy
 
 stages:
diff --git a/handlers.go b/handlers.go
index df5e37c..9b1617b 100644
--- a/handlers.go
+++ b/handlers.go
@@ -305,7 +305,6 @@ func (r *keycloakProxy) admissionHandler() gin.HandlerFunc {
 		}
 
 		// step: if we have any claim matching, validate the tokens has the claims
-		// @TODO we should probably convert the claim checks to regexs
 		for claimName, match := range claimMatches {
 			// step: if the claim is NOT in the token, we access deny
 			value, found, err := identity.claims.StringClaim(claimName)
@@ -618,7 +617,7 @@ func (r *keycloakProxy) expirationHandler(cx *gin.Context) {
 }
 
 //
-// tokenHandle display access token to screen
+// tokenHandler display access token to screen
 //
 func (r *keycloakProxy) tokenHandler(cx *gin.Context) {
 	// step: extract the access token from the request
-- 
GitLab