Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
hdacloud
dex
Commits
4ddc5eb0
Commit
4ddc5eb0
authored
8 years ago
by
rithu leena john
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #765 from rithujohn191/bump-oidc
Bump go-oidc package
parents
fb5199c9
05cef99a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
glide.lock
+3
-3
3 additions, 3 deletions
glide.lock
glide.yaml
+1
-1
1 addition, 1 deletion
glide.yaml
vendor/github.com/coreos/go-oidc/verify.go
+7
-0
7 additions, 0 deletions
vendor/github.com/coreos/go-oidc/verify.go
with
11 additions
and
4 deletions
glide.lock
+
3
−
3
View file @
4ddc5eb0
hash:
723f2faad8f09a97ffb5ce647705b8ee41dbf2f81f91488c60f23d102789a23b
hash:
22c01c4265c210fbf3cd2d55e9451b924a3301e35053c82ebe35171ab7286c83
updated: 201
6-12
-0
8
T1
1:11:10.172119799
-08:00
updated: 201
7-01
-0
6
T1
5:38:29.812891187
-08:00
imports:
imports:
- name: github.com/cockroachdb/cockroach-go
- name: github.com/cockroachdb/cockroach-go
version: 31611c0501c812f437d4861d87d117053967c955
version: 31611c0501c812f437d4861d87d117053967c955
subpackages:
subpackages:
- crdb
- crdb
- name: github.com/coreos/go-oidc
- name: github.com/coreos/go-oidc
version:
dedb650fb29c39c2f21aa88c1e4cec66da8754d
1
version:
2b5d73091ea4b7ddb15e3ac00077f153120b5b6
1
- name: github.com/ghodss/yaml
- name: github.com/ghodss/yaml
version: bea76d6a4713e18b7f5321a2b020738552def3ea
version: bea76d6a4713e18b7f5321a2b020738552def3ea
- name: github.com/go-sql-driver/mysql
- name: github.com/go-sql-driver/mysql
...
...
This diff is collapsed.
Click to expand it.
glide.yaml
+
1
−
1
View file @
4ddc5eb0
...
@@ -66,7 +66,7 @@ import:
...
@@ -66,7 +66,7 @@ import:
# Used for server integration tests and OpenID Connect connector.
# Used for server integration tests and OpenID Connect connector.
-
package
:
github.com/coreos/go-oidc
-
package
:
github.com/coreos/go-oidc
version
:
dedb650fb29c39c2f21aa88c1e4cec66da8754d
1
version
:
2b5d73091ea4b7ddb15e3ac00077f153120b5b6
1
-
package
:
github.com/pquerna/cachecontrol
-
package
:
github.com/pquerna/cachecontrol
version
:
c97913dcbd76de40b051a9b4cd827f7eaeb7a868
version
:
c97913dcbd76de40b051a9b4cd827f7eaeb7a868
-
package
:
golang.org/x/oauth2
-
package
:
golang.org/x/oauth2
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/coreos/go-oidc/verify.go
+
7
−
0
View file @
4ddc5eb0
...
@@ -145,6 +145,13 @@ func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDTok
...
@@ -145,6 +145,13 @@ func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDTok
}
}
}
}
// If a checkExpiry is specified, make sure token is not expired.
if
v
.
config
.
checkExpiry
!=
nil
{
if
t
.
Expiry
.
Before
(
v
.
config
.
checkExpiry
())
{
return
nil
,
fmt
.
Errorf
(
"oidc: token is expired (Token Expiry: %v)"
,
t
.
Expiry
)
}
}
// If a set of required algorithms has been provided, ensure that the signatures use those.
// If a set of required algorithms has been provided, ensure that the signatures use those.
var
keyIDs
,
gotAlgs
[]
string
var
keyIDs
,
gotAlgs
[]
string
for
_
,
sig
:=
range
jws
.
Signatures
{
for
_
,
sig
:=
range
jws
.
Signatures
{
...
...
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