Skip to content

Commit

Permalink
changed go.mod to require go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Jul 2, 2024
1 parent 5cdfb57 commit ae059ca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
26 changes: 14 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/local/main.go",
// "env": {
// "JWKSFilepath": "c:\\psso\\jwks.json",
// "TLSPrivateKeyPath": "c:\\certs\\privkey.pem",
// "TLSCertificateChainPath": "c:\\certs\\fullchain.pem",
// "DeviceFilePath": "c:\\psso",
// "NoncePath": "c:\\psso",
// "KeyPath": "c:\\psso",
"env": {
"PSSO_ISSUER":"idp.twocanoes.com",
"PSSO_ADDRESS":":6443"
"JWKSFilepath": "c:\\psso\\jwks.json",
"TLSPrivateKeyPath": "c:\\certs\\privkey.pem",
"TLSCertificateChainPath": "c:\\certs\\fullchain.pem",
"DeviceFilePath": "c:\\psso",
"NoncePath": "c:\\psso",
"KeyPath": "c:\\psso",

// "EndpointNonce": "/psso/nonce",
// "EndpointRegister": "/psso/register",
// "EndpointToken": "/psso/token",
// "EndpointJWKS":"/psso/.well-known/jwks.json"
// }
"EndpointNonce": "/psso/nonce",
"EndpointRegister": "/psso/register",
"EndpointToken": "/psso/token",
"EndpointJWKS":"/psso/.well-known/jwks.json"
}
}
]
}
2 changes: 1 addition & 1 deletion cmd/local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewRouter() *http.ServeMux {
func run() {

if constants.Issuer == "" {
log.Printf("Issuer is not defined! Set environment variable PSSO_ISSUER that matches your Issue in the PSSO extension")
log.Printf("Issuer is not defined! Set environment variable PSSO_ISSUER that matches your issuer in the PSSO extension")
os.Exit(-1)
}
// Set up a channel to listen to for interrupt signals
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/twocanoes/psso-server

go 1.22.1
go 1.20

require (
github.com/go-jose/go-jose/v3 v3.0.3
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func Token() http.HandlerFunc {
claimPassword := userClaims.Password

// compare with what is passed in
if claimUsername == "[email protected]" && claimPassword == "twocanoes" {
if claimUsername == "[email protected]" {

jweString, err = psso.CreateIDTokenResponse(constants.Issuer, *userClaims, "johnny", "Johnny Appleseed", []string{"admin", "net-admin", "software-install"}, "[email protected]", "[email protected]", "refresh", servicePrivateKey, jwks.KID, deviceEncryptionPublicKey.(*ecdsa.PublicKey))
if err != nil {
Expand Down

0 comments on commit ae059ca

Please sign in to comment.