Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

# biscuit-go

biscuit-go is an implementation of [Biscuit](https://github.com/biscuit-auth/biscuit) in Go. It aims to be fully compatible with other existing implementations, so that tokens issued by, for example, the Rust version, could be validated by this library and vice versa.
biscuit-go is an implementation of [Biscuit](https://github.com/eclipse-biscuit/biscuit) in Go. It aims to be fully compatible with other existing implementations, so that tokens issued by, for example, the Rust version, could be validated by this library and vice versa.

## Documentation and specifications

- [biscuit website](https://www.biscuitsec.org) for documentation and examples
- [biscuit specification](https://github.com/biscuit-auth/biscuit)
- [biscuit-rust](https://github.com/biscuit-auth/biscuit-rust) for some more technical details.
- [biscuit specification](https://github.com/eclipse-biscuit/biscuit)
- [biscuit-rust](https://github.com/eclipse-biscuit/biscuit-rust) for some more technical details.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
"strings"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"
"google.golang.org/protobuf/proto"
)

Expand Down
6 changes: 3 additions & 3 deletions biscuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"fmt"
"io"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"

//"github.com/biscuit-auth/biscuit-go/sig"
//"github.com/eclipse-biscuit/biscuit-go/sig"
"google.golang.org/protobuf/proto"
)

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

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"errors"
"io"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"

//"github.com/biscuit-auth/biscuit-go/sig"
//"github.com/eclipse-biscuit/biscuit-go/sig"
"google.golang.org/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package biscuit
import (
"fmt"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"
"google.golang.org/protobuf/proto"
)

Expand Down
4 changes: 2 additions & 2 deletions converters_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
"reflect"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"
)

func tokenFactToProtoFactV2(input datalog.Fact) (*pb.FactV2, error) {
Expand Down
4 changes: 2 additions & 2 deletions converters_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/biscuit-auth/biscuit-go/v2/pb"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/pb"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
)
Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"crypto/rand"
"fmt"

"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2/parser"
)

func ExampleBiscuit() {
Expand Down
4 changes: 2 additions & 2 deletions experiments/pop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/sig"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/sig"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/biscuit-auth/biscuit-go/v2
module github.com/eclipse-biscuit/biscuit-go/v2

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion parser/grammar.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2"
)

type Comment string
Expand Down
2 changes: 1 addition & 1 deletion parser/grammar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/alecthomas/participle/v2"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
"github.com/biscuit-auth/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions samples/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"sort"
"testing"

"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2/parser"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
)

const MinSchemaVersion uint32 = 3
Expand Down
2 changes: 1 addition & 1 deletion types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/biscuit-auth/biscuit-go/v2/datalog"
"github.com/eclipse-biscuit/biscuit-go/v2/datalog"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions website_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"fmt"
"io"

"github.com/biscuit-auth/biscuit-go/v2"
"github.com/biscuit-auth/biscuit-go/v2/parser"
"github.com/eclipse-biscuit/biscuit-go/v2"
"github.com/eclipse-biscuit/biscuit-go/v2/parser"
)

// code examples for the documentation at https://www.biscuitsec.org
// if these functions change, please send a PR at https://github.com/biscuit-auth/website
// if these functions change, please send a PR at https://github.com/eclipse-biscuit/website

func CreateKey() (ed25519.PublicKey, ed25519.PrivateKey) {
rng := rand.Reader
Expand Down
Loading