Skip to content

Commit

Permalink
change module name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangli1030 committed Nov 17, 2021
1 parent 4ea4ad3 commit 02edd73
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
(
cd $(mktemp -d)
go get github.com/crewjam/goupdate
go get github.com/wangli1030/goupdate
)
git config --global user.email noreply@github.com
git config --global user.name "Github Actions"
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ linters:
- varcheck # Finds unused global variables and constants [fast: true, auto-fix: false]
linters-settings:
goimports:
local-prefixes: github.com/crewjam/saml
local-prefixes: github.com/wangli1030/saml
govet:
disable:
- shadow
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SAML

[![](https://godoc.org/github.com/crewjam/saml?status.svg)](http://godoc.org/github.com/crewjam/saml)
[![](https://godoc.org/github.com/wangli1030/saml?status.svg)](http://godoc.org/github.com/wangli1030/saml)

![Build Status](https://github.com/crewjam/saml/workflows/Presubmit/badge.svg)
![Build Status](https://github.com/wangli1030/saml/workflows/Presubmit/badge.svg)

Package saml contains a partial implementation of the SAML standard in golang.
SAML is a standard for identity federation, i.e. either allowing a third party to authenticate your users or allowing third parties to rely on us to authenticate their users.
Expand Down Expand Up @@ -54,7 +54,7 @@ import (
"net/http"
"net/url"

"github.com/crewjam/saml/samlsp"
"github.com/wangli1030/saml/samlsp"
)

func hello(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -154,4 +154,4 @@ The SAML specification is a collection of PDFs (sadly):

## Security Issues

Please do not report security issues in the issue tracker. Rather, please contact me directly at ross@kndr.org ([PGP Key `78B6038B3B9DFB88`](https://keybase.io/crewjam)). If your issue is *not* a security issue, please use the issue tracker so other contributors can help.
Please do not report security issues in the issue tracker. Rather, please contact me directly at ross@kndr.org ([PGP Key `78B6038B3B9DFB88`](https://keybase.io/wangli1030)). If your issue is *not* a security issue, please use the issue tracker so other contributors can help.
4 changes: 2 additions & 2 deletions example/idp/idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/zenazn/goji"
"golang.org/x/crypto/bcrypt"

"github.com/crewjam/saml/logger"
"github.com/crewjam/saml/samlidp"
"github.com/wangli1030/saml/logger"
"github.com/wangli1030/saml/samlidp"
)

var key = func() crypto.PrivateKey {
Expand Down
2 changes: 1 addition & 1 deletion example/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/zenazn/goji"
"github.com/zenazn/goji/web"

"github.com/crewjam/saml/samlsp"
"github.com/wangli1030/saml/samlsp"
)

var links = map[string]Link{}
Expand Down
2 changes: 1 addition & 1 deletion example/trivial/trivial.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"net/url"

"github.com/crewjam/saml/samlsp"
"github.com/wangli1030/saml/samlsp"
)

func hello(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.13

require (
github.com/beevik/etree v1.1.0
github.com/crewjam/httperr v0.2.0
github.com/wangli1030/httperr v0.2.0
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5
github.com/form3tech-oss/jwt-go v3.2.2+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/beevik/etree v1.1.0 h1:T0xke/WvNtMoCqgzPhkX2r4rjY3GDZFi+FjpRZY2Jbs=
github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo=
github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
github.com/wangli1030/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo=
github.com/wangli1030/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
4 changes: 2 additions & 2 deletions identity_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
xrv "github.com/mattermost/xml-roundtrip-validator"
dsig "github.com/russellhaering/goxmldsig"

"github.com/crewjam/saml/logger"
"github.com/crewjam/saml/xmlenc"
"github.com/wangli1030/saml/logger"
"github.com/wangli1030/saml/xmlenc"
)

// Session represents a user session. It is returned by the
Expand Down
6 changes: 3 additions & 3 deletions identity_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"github.com/beevik/etree"
"github.com/form3tech-oss/jwt-go"

"github.com/crewjam/saml/logger"
"github.com/crewjam/saml/testsaml"
"github.com/crewjam/saml/xmlenc"
"github.com/wangli1030/saml/logger"
"github.com/wangli1030/saml/testsaml"
"github.com/wangli1030/saml/xmlenc"
)

type IdentityProviderTest struct {
Expand Down
6 changes: 3 additions & 3 deletions saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//
// Version 0.4.0 introduces a few breaking changes to the _samlsp_ package in order to make the package more extensible, and to clean up the interfaces a bit. The default behavior remains the same, but you can now provide interface implementations of _RequestTracker_ (which tracks pending requests), _Session_ (which handles maintaining a session) and _OnError_ which handles reporting errors.
//
// Public fields of _samlsp.Middleware_ have changed, so some usages may require adjustment. See [issue 231](https://github.com/crewjam/saml/issues/231) for details.
// Public fields of _samlsp.Middleware_ have changed, so some usages may require adjustment. See [issue 231](https://github.com/wangli1030/saml/issues/231) for details.
//
// The option to provide an IDP metadata URL has been deprecated. Instead, we recommend that you use the `FetchMetadata()` function, or fetch the metadata yourself and use the new `ParseMetadata()` function, and pass the metadata in _samlsp.Options.IDPMetadata_.
//
Expand Down Expand Up @@ -72,7 +72,7 @@
// "net/http"
// "net/url"
//
// "github.com/crewjam/saml/samlsp"
// "github.com/wangli1030/saml/samlsp"
// )
//
// func hello(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -167,5 +167,5 @@
//
// Security Issues
//
// Please do not report security issues in the issue tracker. Rather, please contact me directly at ross@kndr.org ([PGP Key `78B6038B3B9DFB88`](https://keybase.io/crewjam)).
// Please do not report security issues in the issue tracker. Rather, please contact me directly at ross@kndr.org ([PGP Key `78B6038B3B9DFB88`](https://keybase.io/wangli1030)).
package saml
4 changes: 2 additions & 2 deletions samlidp/samlidp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/zenazn/goji/web"

"github.com/crewjam/saml"
"github.com/crewjam/saml/logger"
"github.com/wangli1030/saml"
"github.com/wangli1030/saml/logger"
)

// Options represent the parameters to New() for creating a new IDP server
Expand Down
4 changes: 2 additions & 2 deletions samlidp/samlidp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (

"github.com/form3tech-oss/jwt-go"

"github.com/crewjam/saml"
"github.com/crewjam/saml/logger"
"github.com/wangli1030/saml"
"github.com/wangli1030/saml/logger"
)

type testRandomReader struct {
Expand Down
2 changes: 1 addition & 1 deletion samlidp/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/zenazn/goji/web"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// Service represents a configured SP for whom this IDP provides authentication services.
Expand Down
2 changes: 1 addition & 1 deletion samlidp/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/zenazn/goji/web"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

var sessionMaxAge = time.Hour
Expand Down
2 changes: 1 addition & 1 deletion samlidp/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

xrv "github.com/mattermost/xml-roundtrip-validator"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

func randomBytes(n int) []byte {
Expand Down
2 changes: 1 addition & 1 deletion samlsp/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"net/http"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// ErrorFunction is a callback that is invoked to return an error to the
Expand Down
4 changes: 2 additions & 2 deletions samlsp/fetch_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"net/http"
"net/url"

"github.com/crewjam/httperr"
xrv "github.com/mattermost/xml-roundtrip-validator"
"github.com/wangli1030/httperr"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// ParseMetadata parses arbitrary SAML IDP metadata.
Expand Down
2 changes: 1 addition & 1 deletion samlsp/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/xml"
"net/http"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// Middleware implements middleware than allows a web application
Expand Down
4 changes: 2 additions & 2 deletions samlsp/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
is "gotest.tools/assert/cmp"
"gotest.tools/golden"

"github.com/crewjam/saml"
"github.com/crewjam/saml/testsaml"
"github.com/wangli1030/saml"
"github.com/wangli1030/saml/testsaml"
)

type MiddlewareTest struct {
Expand Down
2 changes: 1 addition & 1 deletion samlsp/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

dsig "github.com/russellhaering/goxmldsig"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// Options represents the parameters for creating a new middleware
Expand Down
2 changes: 1 addition & 1 deletion samlsp/request_tracker_cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

var _ RequestTracker = CookieRequestTracker{}
Expand Down
2 changes: 1 addition & 1 deletion samlsp/request_tracker_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/form3tech-oss/jwt-go"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

var defaultJWTSigningMethod = jwt.SigningMethodRS256
Expand Down
2 changes: 1 addition & 1 deletion samlsp/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"net/http"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

// Session is an interface implemented to contain a session.
Expand Down
2 changes: 1 addition & 1 deletion samlsp/session_cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

const defaultSessionCookieName = "token"
Expand Down
2 changes: 1 addition & 1 deletion samlsp/session_cookie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"gotest.tools/assert"
is "gotest.tools/assert/cmp"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

func TestCookieSameSite(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion samlsp/session_jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/form3tech-oss/jwt-go"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion samlsp/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package samlsp
import (
"io"

"github.com/crewjam/saml"
"github.com/wangli1030/saml"
)

func randomBytes(n int) []byte {
Expand Down
2 changes: 1 addition & 1 deletion service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
dsig "github.com/russellhaering/goxmldsig"
"github.com/russellhaering/goxmldsig/etreeutils"

"github.com/crewjam/saml/xmlenc"
"github.com/wangli1030/saml/xmlenc"
)

// NameIDFormat is the format of the id
Expand Down
2 changes: 1 addition & 1 deletion service_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/beevik/etree"
dsig "github.com/russellhaering/goxmldsig"

"github.com/crewjam/saml/testsaml"
"github.com/wangli1030/saml/testsaml"
)

type ServiceProviderTest struct {
Expand Down

0 comments on commit 02edd73

Please sign in to comment.