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
ec229173
Commit
ec229173
authored
8 years ago
by
Rohith Jayawardene
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Release v2.0.0 (#170)
- pushing out version v2.0.0 - updated changelog to reflect changes
parent
09ab16bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-2
2 additions, 2 deletions
CHANGELOG.md
doc.go
+1
-1
1 addition, 1 deletion
doc.go
handlers.go
+8
-2
8 additions, 2 deletions
handlers.go
with
11 additions
and
5 deletions
CHANGELOG.md
+
2
−
2
View file @
ec229173
#### **2.0.0
(unreleased or in master)
**
#### **2.0.0**
FEATURES:
*
Adding the --skip-openid-provider-tls-verify option to bypass the TLS verification for Idp
[
#PR147
](
https://github.com/gambol99/keycloak-proxy/pull/147
)
...
...
This diff is collapsed.
Click to expand it.
doc.go
+
1
−
1
View file @
ec229173
...
...
@@ -24,7 +24,7 @@ import (
)
var
(
release
=
"v
1.2.8
"
release
=
"v
2.0.0
"
gitsha
=
"no gitsha provided"
version
=
release
+
" (git+sha: "
+
gitsha
+
")"
)
...
...
This diff is collapsed.
Click to expand it.
handlers.go
+
8
−
2
View file @
ec229173
...
...
@@ -169,9 +169,15 @@ func (r *oauthProxy) oauthCallbackHandler(cx *gin.Context) {
"error"
:
err
.
Error
(),
})
.
Warnf
(
"failed to save the refresh token in the store"
)
}
// step: get expiration of the refresh token if we can
_
,
ident
,
err
:=
parseToken
(
response
.
RefreshToken
)
if
err
!=
nil
{
r
.
dropAccessTokenCookie
(
cx
,
session
.
Encode
(),
time
.
Duration
(
72
)
*
time
.
Hour
)
}
else
{
r
.
dropAccessTokenCookie
(
cx
,
session
.
Encode
(),
ident
.
ExpiresAt
.
Sub
(
time
.
Now
()))
}
default
:
// step: attempt to decode the refresh token (not all refresh tokens are jwt tokens;
// gooogle for instance.
// step: attempt to decode the refresh token (not all refresh tokens are jwt tokens; google for instance.
if
_
,
ident
,
err
:=
parseToken
(
response
.
RefreshToken
);
err
!=
nil
{
r
.
dropRefreshTokenCookie
(
cx
,
encrypted
,
time
.
Duration
(
72
)
*
time
.
Hour
)
}
else
{
...
...
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