Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jusshersmith committed Dec 12, 2019
1 parent 2238b54 commit 1afa378
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/pkg/sessions/session_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ func TestSessionStateExpirations(t *testing.T) {
if !session.IsWithinGracePeriod(3 * time.Minute) {
t.Errorf("expected session to be inside of grace period")
}

}
2 changes: 1 addition & 1 deletion internal/proxy/oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ func (p *OAuthProxy) Authenticate(rw http.ResponseWriter, req *http.Request) (er
case providers.ErrAuthProviderUnavailable:
tags = append(tags, "action:refresh_session", "error:validation_failed")
p.StatsdClient.Incr("provider_error_fallback", tags, 1.0)
session.RefreshDeadline = sessions.ExtendDeadline(p.provider.Data().SessionValidTTL)
session.ValidDeadline = sessions.ExtendDeadline(p.provider.Data().SessionValidTTL)
default:
return ErrUserNotAuthorized
}
Expand Down

0 comments on commit 1afa378

Please sign in to comment.