Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
keycloak-proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
keycloak-proxy
Commits
dad84232
Commit
dad84232
authored
9 years ago
by
Rohith
Browse files
Options
Downloads
Patches
Plain Diff
- adding the gitlab vars
parent
2f411049
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-4
3 additions, 4 deletions
.gitlab-ci.yml
handlers.go
+1
-2
1 addition, 2 deletions
handlers.go
with
4 additions
and
6 deletions
.gitlab-ci.yml
+
3
−
4
View file @
dad84232
#
# vim:ts=2:sw=2:et
#
variables
:
variables
:
REGISTRY
:
quay.io
REGISTRY
:
quay.io
REGISTRY_AUTHOR
:
ukhomeofficedigital
REGISTRY_EMAIL
:
gitlab@digital.homeoffice.gov.uk
REGISTRY_USER
:
ukhomeofficedigital+gitlab
NAME
:
go-keycloak-proxy
NAME
:
go-keycloak-proxy
stages
:
stages
:
...
...
This diff is collapsed.
Click to expand it.
handlers.go
+
1
−
2
View file @
dad84232
...
@@ -305,7 +305,6 @@ func (r *keycloakProxy) admissionHandler() gin.HandlerFunc {
...
@@ -305,7 +305,6 @@ func (r *keycloakProxy) admissionHandler() gin.HandlerFunc {
}
}
// step: if we have any claim matching, validate the tokens has the claims
// 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
{
for
claimName
,
match
:=
range
claimMatches
{
// step: if the claim is NOT in the token, we access deny
// step: if the claim is NOT in the token, we access deny
value
,
found
,
err
:=
identity
.
claims
.
StringClaim
(
claimName
)
value
,
found
,
err
:=
identity
.
claims
.
StringClaim
(
claimName
)
...
@@ -618,7 +617,7 @@ func (r *keycloakProxy) expirationHandler(cx *gin.Context) {
...
@@ -618,7 +617,7 @@ func (r *keycloakProxy) expirationHandler(cx *gin.Context) {
}
}
//
//
// tokenHandle display access token to screen
// tokenHandle
r
display access token to screen
//
//
func
(
r
*
keycloakProxy
)
tokenHandler
(
cx
*
gin
.
Context
)
{
func
(
r
*
keycloakProxy
)
tokenHandler
(
cx
*
gin
.
Context
)
{
// step: extract the access token from the request
// step: extract the access token from the request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment