Skip to content

Commit

Permalink
chore: remove unnecessary package names (#2)
Browse files Browse the repository at this point in the history
Remove package name `dpop` in test imports and `README` examples.
Fix file type error on `dependabot` config.
  • Loading branch information
SalladinBalwer authored Aug 17, 2023
1 parent bb4d309 commit 43d01ee
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ An authorization server needs to parse the incoming proof in order to associate
It should parse the proof to ensure that the sender of the proof has access to the private key.

```go
import dpop "github.com/AxisCommunications/go-dpop"
import "github.com/AxisCommunications/go-dpop"

proof, err := dpop.Parse(proofString, dpop.POST, &httpUrl, dpop.ParseOptions{
Nonce: "",
Expand All @@ -48,7 +48,7 @@ jkt := proof.PublicKey()
Resource servers need to do the same proof validation that authorization servers do but also check that the proof and access token are bound correctly.

```go
import dpop "github.com/AxisCommunications/go-dpop"
import "github.com/AxisCommunications/go-dpop"

proof, err := dpop.Parse(proofString, dpop.POST, &httpUrl, dpop.ParseOptions{
Nonce: "",
Expand Down Expand Up @@ -84,7 +84,7 @@ if err != nil {
A client can generate proofs that authorization and resource servers can validate.

```go
import dpop "github.com/AxisCommunications/go-dpop"
import "github.com/AxisCommunications/go-dpop"

// Setup the claims of the proof
claims := &dpop.ProofTokenClaims{
Expand Down
2 changes: 1 addition & 1 deletion boundtoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

dpop "github.com/AxisCommunications/go-dpop"
"github.com/AxisCommunications/go-dpop"
)

// Test that the BoundAccessTokenClaims type is correctly implemented
Expand Down
2 changes: 1 addition & 1 deletion create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

dpop "github.com/AxisCommunications/go-dpop"
"github.com/AxisCommunications/go-dpop"
"github.com/golang-jwt/jwt/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

dpop "github.com/AxisCommunications/go-dpop"
"github.com/AxisCommunications/go-dpop"
)

// Helper function to control types of joined errors.
Expand Down
2 changes: 1 addition & 1 deletion parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

dpop "github.com/AxisCommunications/go-dpop"
"github.com/AxisCommunications/go-dpop"
)

// All proofs used in tests have been generated through the use of <https://github.com/panva/dpop>
Expand Down
2 changes: 1 addition & 1 deletion proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

dpop "github.com/AxisCommunications/go-dpop"
"github.com/AxisCommunications/go-dpop"
"github.com/golang-jwt/jwt/v5"
)

Expand Down

0 comments on commit 43d01ee

Please sign in to comment.