fork of haileyok/atproto-oauth-golang

more renaming

anirudh.fi 69f45615 0710542e

verified
+1 -1
README.md
··· 7 > You should always validate user input. The example/test code inside this repo may be used as an implementation guide, but no guarantees are made. 8 9 ```bash 10 - go get tangled.sh/icyphox.sh/atproto-oauth 11 ``` 12 13 ## Prerequisites
··· 7 > You should always validate user input. The example/test code inside this repo may be used as an implementation guide, but no guarantees are made. 8 9 ```bash 10 + go get tangled.org/anirudh.fi/icyphox.sh/atproto-oauth 11 ``` 12 13 ## Prerequisites
+1 -1
cmd/helper/main.go
··· 5 "os" 6 7 "github.com/urfave/cli/v2" 8 - oauth_helpers "tangled.sh/icyphox.sh/atproto-oauth/helpers" 9 ) 10 11 func main() {
··· 5 "os" 6 7 "github.com/urfave/cli/v2" 8 + oauth_helpers "tangled.org/anirudh.fi/atproto-oauth/helpers" 9 ) 10 11 func main() {
+1 -1
cmd/web_server_demo/handle_auth.go
··· 12 "github.com/labstack/echo-contrib/session" 13 "github.com/labstack/echo/v4" 14 "gorm.io/gorm/clause" 15 - oauth_helpers "tangled.sh/icyphox.sh/atproto-oauth/helpers" 16 ) 17 18 func (s *TestServer) handleLoginSubmit(e echo.Context) error {
··· 12 "github.com/labstack/echo-contrib/session" 13 "github.com/labstack/echo/v4" 14 "gorm.io/gorm/clause" 15 + oauth_helpers "tangled.org/anirudh.fi/atproto-oauth/helpers" 16 ) 17 18 func (s *TestServer) handleLoginSubmit(e echo.Context) error {
+2 -2
cmd/web_server_demo/main.go
··· 17 "github.com/urfave/cli/v2" 18 "gorm.io/driver/sqlite" 19 "gorm.io/gorm" 20 - oauth "tangled.sh/icyphox.sh/atproto-oauth" 21 - oauth_helpers "tangled.sh/icyphox.sh/atproto-oauth/helpers" 22 ) 23 24 var (
··· 17 "github.com/urfave/cli/v2" 18 "gorm.io/driver/sqlite" 19 "gorm.io/gorm" 20 + oauth "tangled.org/anirudh.fi/atproto-oauth" 21 + oauth_helpers "tangled.org/anirudh.fi/atproto-oauth/helpers" 22 ) 23 24 var (
+2 -2
cmd/web_server_demo/user.go
··· 7 8 "github.com/labstack/echo-contrib/session" 9 "github.com/labstack/echo/v4" 10 - oauth "tangled.sh/icyphox.sh/atproto-oauth" 11 - oauth_helpers "tangled.sh/icyphox.sh/atproto-oauth/helpers" 12 ) 13 14 func (s *TestServer) getOauthSession(ctx context.Context, did string) (*OauthSession, error) {
··· 7 8 "github.com/labstack/echo-contrib/session" 9 "github.com/labstack/echo/v4" 10 + oauth "tangled.org/anirudh.fi/atproto-oauth" 11 + oauth_helpers "tangled.org/anirudh.fi/atproto-oauth/helpers" 12 ) 13 14 func (s *TestServer) getOauthSession(ctx context.Context, did string) (*OauthSession, error) {
-1
go.mod
··· 17 github.com/urfave/cli/v2 v2.27.5 18 gorm.io/driver/sqlite v1.5.7 19 gorm.io/gorm v1.25.9 20 - tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250828064049-5d3e087a4dbe 21 ) 22 23 require (
··· 17 github.com/urfave/cli/v2 v2.27.5 18 gorm.io/driver/sqlite v1.5.7 19 gorm.io/gorm v1.25.9 20 ) 21 22 require (
+4 -6
go.sum
··· 151 github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f h1:VXTQfuJj9vKR4TCkEuWIckKvdHFeJH/huIFJ9/cXOB0= 152 github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= 153 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 154 - github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= 155 - github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= 156 github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 157 github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 158 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= ··· 309 golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= 310 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 311 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 312 - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 313 - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 314 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 315 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 316 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= ··· 325 honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 326 lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= 327 lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= 328 - tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250828064049-5d3e087a4dbe h1:SziWXF9Rlj6Uy4oQy+oKR5Kjm+zeMn3GH7eMs/K0qBY= 329 - tangled.sh/icyphox.sh/atproto-oauth v0.0.0-20250828064049-5d3e087a4dbe/go.mod h1:+oQi9S6IIDll0nxLZVhuzOPX8WKLCYEnE6M5kUKupDg=
··· 151 github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f h1:VXTQfuJj9vKR4TCkEuWIckKvdHFeJH/huIFJ9/cXOB0= 152 github.com/polydawn/refmt v0.89.1-0.20221221234430-40501e09de1f/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= 153 github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 154 + github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= 155 + github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= 156 github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 157 github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 158 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= ··· 309 golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= 310 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 311 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 312 + gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= 313 + gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 314 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 315 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 316 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= ··· 325 honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 326 lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI= 327 lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k=
+2 -2
oauth.go
··· 14 "github.com/golang-jwt/jwt/v5" 15 "github.com/google/uuid" 16 "github.com/lestrrat-go/jwx/v2/jwk" 17 - "tangled.sh/icyphox.sh/atproto-oauth/helpers" 18 - internal_helpers "tangled.sh/icyphox.sh/atproto-oauth/internal/helpers" 19 ) 20 21 type Client struct {
··· 14 "github.com/golang-jwt/jwt/v5" 15 "github.com/google/uuid" 16 "github.com/lestrrat-go/jwx/v2/jwk" 17 + "tangled.org/anirudh.fi/atproto-oauth/helpers" 18 + internal_helpers "tangled.org/anirudh.fi/atproto-oauth/internal/helpers" 19 ) 20 21 type Client struct {
+1 -1
oauth_test.go
··· 10 11 _ "github.com/joho/godotenv/autoload" 12 "github.com/stretchr/testify/assert" 13 - "tangled.sh/icyphox.sh/atproto-oauth/helpers" 14 ) 15 16 var (
··· 10 11 _ "github.com/joho/godotenv/autoload" 12 "github.com/stretchr/testify/assert" 13 + "tangled.org/anirudh.fi/atproto-oauth/helpers" 14 ) 15 16 var (
+1 -1
xrpc.go
··· 17 "github.com/golang-jwt/jwt/v5" 18 "github.com/google/uuid" 19 "github.com/lestrrat-go/jwx/v2/jwk" 20 - "tangled.sh/icyphox.sh/atproto-oauth/internal/helpers" 21 ) 22 23 // This xrpc client is copied from the indigo xrpc client, with some tweaks:
··· 17 "github.com/golang-jwt/jwt/v5" 18 "github.com/google/uuid" 19 "github.com/lestrrat-go/jwx/v2/jwk" 20 + "tangled.org/anirudh.fi/atproto-oauth/internal/helpers" 21 ) 22 23 // This xrpc client is copied from the indigo xrpc client, with some tweaks: