Skip to content

Commit

Permalink
point to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
aporcupine committed Nov 10, 2021
1 parent 03bf2e5 commit 82cc5cb
Show file tree
Hide file tree
Showing 29 changed files with 41 additions and 39 deletions.
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/aporcupine/saml
govet:
disable:
- shadow
Expand Down
6 changes: 3 additions & 3 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/aporcupine/saml?status.svg)](http://godoc.org/github.com/aporcupine/saml)

![Build Status](https://github.com/crewjam/saml/workflows/Presubmit/badge.svg)
![Build Status](https://github.com/aporcupine/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/aporcupine/saml/samlsp"
)

func hello(w http.ResponseWriter, r *http.Request) {
Expand Down
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/aporcupine/saml/logger"
"github.com/aporcupine/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/aporcupine/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/aporcupine/saml/samlsp"
)

func hello(w http.ResponseWriter, r *http.Request) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/crewjam/saml
module github.com/aporcupine/saml

go 1.13

Expand All @@ -19,4 +19,4 @@ require (
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gotest.tools v2.2.0+incompatible
)
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUB
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
Expand All @@ -32,6 +33,7 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
github.com/russellhaering/goxmldsig v1.1.0 h1:lK/zeJie2sqG52ZAlPNn1oBBqsIsEKypUUBGpYYF6lk=
github.com/russellhaering/goxmldsig v1.1.0/go.mod h1:QK8GhXPB3+AfuCrfo0oRISa9NfzeCpWmxeGnqEpDF9o=
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/aporcupine/saml/logger"
"github.com/aporcupine/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/aporcupine/saml/logger"
"github.com/aporcupine/saml/testsaml"
"github.com/aporcupine/saml/xmlenc"
)

type IdentityProviderTest struct {
Expand Down
4 changes: 2 additions & 2 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/aporcupine/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/aporcupine/saml/samlsp"
// )
//
// func hello(w http.ResponseWriter, r *http.Request) {
Expand Down
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/aporcupine/saml"
"github.com/aporcupine/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/aporcupine/saml"
"github.com/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/saml"
)

// ErrorFunction is a callback that is invoked to return an error to the
Expand Down
2 changes: 1 addition & 1 deletion samlsp/fetch_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/crewjam/httperr"
xrv "github.com/mattermost/xml-roundtrip-validator"

"github.com/crewjam/saml"
"github.com/aporcupine/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/aporcupine/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/aporcupine/saml"
"github.com/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/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 @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/crewjam/saml"
"github.com/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/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/aporcupine/saml/testsaml"
)

type ServiceProviderTest struct {
Expand Down

0 comments on commit 82cc5cb

Please sign in to comment.