mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-25 17:43:27 +02:00
Bump go to 1.17 and upgrade deps (#32)
Co-authored-by: Krzysztof Adamski <krzysztof.adamski@ing.com>
This commit is contained in:
parent
281cf1283c
commit
48da75b96d
3 changed files with 45 additions and 13 deletions
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/bolkedebruin/rdpgw/cmd/rdpgw/common"
|
||||
"github.com/bolkedebruin/rdpgw/cmd/rdpgw/protocol"
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"github.com/square/go-jose/v3"
|
||||
"github.com/square/go-jose/v3/jwt"
|
||||
"github.com/go-jose/go-jose/v3"
|
||||
"github.com/go-jose/go-jose/v3/jwt"
|
||||
"golang.org/x/oauth2"
|
||||
"log"
|
||||
"time"
|
||||
|
@ -19,8 +19,8 @@ var (
|
|||
EncryptionKey []byte
|
||||
UserSigningKey []byte
|
||||
UserEncryptionKey []byte
|
||||
OIDCProvider *oidc.Provider
|
||||
Oauth2Config oauth2.Config
|
||||
OIDCProvider *oidc.Provider
|
||||
Oauth2Config oauth2.Config
|
||||
)
|
||||
|
||||
var ExpiryTime time.Duration = 5
|
||||
|
@ -210,7 +210,7 @@ func UserInfo(ctx context.Context, token string) (jwt.Claims, error) {
|
|||
// go-jose doesnt verify the expiry
|
||||
err := standard.Validate(jwt.Expected{
|
||||
Issuer: "rdpgw",
|
||||
Time: time.Now(),
|
||||
Time: time.Now(),
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
@ -237,4 +237,4 @@ func verifyAlg(headers []jose.Header, alg string) (bool, error) {
|
|||
}
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue