change mod name
This commit is contained in:
parent
876df38907
commit
43586728d2
@ -9,7 +9,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo/rs"
|
"git.daebt.dev/golang/auth/algo/rs"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pub = `-----BEGIN RSA PUBLIC KEY-----
|
var pub = `-----BEGIN RSA PUBLIC KEY-----
|
||||||
|
|||||||
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module git.daebt.dev/auth
|
module git.daebt.dev/golang/auth
|
||||||
|
|
||||||
go 1.23.3
|
go 1.23.3
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
"git.daebt.dev/auth/algo/rs"
|
"git.daebt.dev/golang/auth/algo/rs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Token interface {
|
type Token interface {
|
||||||
|
|||||||
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
"git.daebt.dev/auth/jwk"
|
"git.daebt.dev/golang/auth/jwk"
|
||||||
"git.daebt.dev/auth/jwt"
|
"git.daebt.dev/golang/auth/jwt"
|
||||||
)
|
)
|
||||||
|
|
||||||
var rows = `{
|
var rows = `{
|
||||||
|
|||||||
@ -6,8 +6,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
"git.daebt.dev/auth/algo/rs"
|
"git.daebt.dev/golang/auth/algo/rs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TokenRSA struct {
|
type TokenRSA struct {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ package jwt
|
|||||||
import (
|
import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Header struct {
|
type Header struct {
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo"
|
"git.daebt.dev/golang/auth/algo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@ -6,8 +6,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.daebt.dev/auth/algo/rs"
|
"git.daebt.dev/golang/auth/algo/rs"
|
||||||
"git.daebt.dev/auth/jwt"
|
"git.daebt.dev/golang/auth/jwt"
|
||||||
)
|
)
|
||||||
|
|
||||||
var key = `-----BEGIN RSA PRIVATE KEY-----
|
var key = `-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user