diff --git a/.travis.yml b/.travis.yml index 17f40bf5f..1adc12955 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: go -go_import_path: github.com/ory-am/fosite +go_import_path: github.com/ory/fosite go: - 1.7 diff --git a/HISTORY.md b/HISTORY.md index 4720ed5fd..a7da0cb0d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,6 +6,7 @@ bumps (`0.1.0` -> `0.2.0`). Breaking changes * Replaced `"golang.org/x/net/context"` with `"context"`. +* Move the repo from `github.com/ory-am/fosite` to `github.com/ory/fosite` ## 0.6.0 diff --git a/README.md b/README.md index 66f9bdb8c..2fef90c03 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/ory/fosite.svg?branch=master)](https://travis-ci.org/ory/fosite?branch=master) [![Coverage Status](https://coveralls.io/repos/ory/fosite/badge.svg?branch=master&service=github&foo)](https://coveralls.io/github/ory/fosite?branch=master) -[![Go Report Card](https://goreportcard.com/badge/ory-am/fosite)](https://goreportcard.com/report/ory-am/fosite) +[![Go Report Card](https://goreportcard.com/badge/ory/fosite)](https://goreportcard.com/report/ory/fosite) [![Join the chat at https://gitter.im/ory-am/fosite](https://badges.gitter.im/ory-am/fosite.svg)](https://gitter.im/ory-am/fosite) @@ -70,15 +70,15 @@ You can run this minimalistic example by doing ``` go get github.com/Masterminds/glide -go get github.com/ory-am/fosite-example -cd $GOPATH/src/github.com/ory-am/fosite-example +go get github.com/ory/fosite-example +cd $GOPATH/src/github.com/ory/fosite-example glide install -go install github.com/ory-am/fosite-example +go install github.com/ory/fosite-example fosite-example ``` There should be a server listening on [localhost:3846](https://localhost:3846/). You can check out the example's -source code [here](https://github.com/ory-am/fosite-example/). +source code [here](https://github.com/ory/fosite-example/). ## A word on quality @@ -125,7 +125,7 @@ Additionally, we added these safeguards: Sections below [Section 5](https://tools.ietf.org/html/rfc6819#section-5) that are not covered in the list above should be reviewed by you. If you think that a specific section should be something -that is covered in Fosite, feel free to create an [issue](https://github.com/ory-am/fosite/issues). Please be +that is covered in Fosite, feel free to create an [issue](https://github.com/ory/fosite/issues). Please be aware that OpenID Connect requires specific knowledge of the identity provider, which is why Fosite only implements core requirements and most things must be implemented by you (for example prompt, max_age, ui_locales, id_token_hint, user authentication, session management, ...). @@ -145,7 +145,7 @@ OAuth2 stack, that's no problem. Or custom assertions, what ever you like and as GOPATH environment variable. ``` -go get -d github.com/ory-am/fosite +go get -d github.com/ory/fosite ``` We recommend to use [Glide](https://github.com/Masterminds/glide) or [Godep](https://github.com/tools/godep) to @@ -153,7 +153,7 @@ mitigate compatibility breaks that come with new api versions. ## Documentation -There is an API documentation available at [godoc.org/ory-am/fosite](https://godoc.org/github.com/ory-am/fosite). +There is an API documentation available at [godoc.org/ory/fosite](https://godoc.org/github.com/ory/fosite). ### Scopes @@ -176,14 +176,14 @@ Instantiating fosite by hand can be painful. Therefore we created a few convenie It is strongly encouraged to use these well tested composers. In this very basic example, we will instantiate fosite with all OpenID Connect and OAuth2 handlers enabled. Please refer -to the [example app](https://github.com/ory-am/fosite-example/) for more details. +to the [example app](https://github.com/ory/fosite-example/) for more details. This little code snippet sets up a full-blown OAuth2 and OpenID Connect example. ```go -import "github.com/ory-am/fosite" -import "github.com/ory-am/fosite/compose" -import "github.com/ory-am/fosite/storage" +import "github.com/ory/fosite" +import "github.com/ory/fosite/compose" +import "github.com/ory/fosite/storage" // This is the exemplary storage that contains: // * an OAuth2 Client with id "my-client" and secret "foobar" capable of all oauth2 and open id connect grant and response types. @@ -310,7 +310,7 @@ func someResourceProviderHandlerFunc(rw http.ResponseWriter, req *http.Request) Fosite provides integration tests as well as a http server example: -* Fosite ships with an example app that runs in your browser: [Example app](https://github.com/ory-am/fosite-example/). +* Fosite ships with an example app that runs in your browser: [Example app](https://github.com/ory/fosite-example/). * If you want to check out how to enable specific handlers, check out the [integration tests](integration/). If you have working examples yourself, please share them with us! @@ -347,8 +347,8 @@ Please note that when using the OAuth2StatelessJWTIntrospectionFactory access to You need git and golang installed on your system. ``` -go get -d github.com/ory-am/fosite -cd $GOPATH/src/github.com/ory-am/fosite +go get -d github.com/ory/fosite +cd $GOPATH/src/github.com/ory/fosite git status git remote add myfork go test ./... @@ -366,23 +366,23 @@ Run `./generate-mocks.sh` in fosite's root directory or run the contents of [gen This place is reserved for the fearless bug hunters, reviewers and contributors (alphabetical order). * [agtorre](https://github.com/agtorre): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Aagtorre), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Aagtorre). + [contributions](https://github.com/ory/fosite/issues?q=author%3Aagtorre), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Aagtorre). * [danielchatfield](https://github.com/danielchatfield): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Adanielchatfield), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Adanielchatfield). + [contributions](https://github.com/ory/fosite/issues?q=author%3Adanielchatfield), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Adanielchatfield). * [leetal](https://github.com/leetal): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Aleetal), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Aleetal). + [contributions](https://github.com/ory/fosite/issues?q=author%3Aleetal), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Aleetal). * [jrossiter](https://github.com/jrossiter): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Ajrossiter), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Ajrossiter). + [contributions](https://github.com/ory/fosite/issues?q=author%3Ajrossiter), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Ajrossiter). * [jrossiter](https://github.com/jrossiter): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Ajrossiter), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Ajrossiter). + [contributions](https://github.com/ory/fosite/issues?q=author%3Ajrossiter), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Ajrossiter). * [danilobuerger](https://github.com/danilobuerger): - [contributions](https://github.com/ory-am/fosite/issues?q=author%3Adanilobuerger), - [participations](https://github.com/ory-am/fosite/issues?q=commenter%3Adanilobuerger). + [contributions](https://github.com/ory/fosite/issues?q=author%3Adanilobuerger), + [participations](https://github.com/ory/fosite/issues?q=commenter%3Adanilobuerger). Find out more about the [author](https://aeneas.io/) of Fosite and Hydra, and the [Ory Company](https://ory.am/). diff --git a/access_error_test.go b/access_error_test.go index ac7297af1..f4ecc745f 100644 --- a/access_error_test.go +++ b/access_error_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/access_request_handler_test.go b/access_request_handler_test.go index 05cae91d3..f1f93216e 100644 --- a/access_request_handler_test.go +++ b/access_request_handler_test.go @@ -9,8 +9,8 @@ import ( "github.com/golang/mock/gomock" "github.com/ory-am/common/pkg" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/access_response_test.go b/access_response_test.go index 8bd78695e..46a5a172e 100644 --- a/access_response_test.go +++ b/access_response_test.go @@ -3,7 +3,7 @@ package fosite_test import ( "testing" - . "github.com/ory-am/fosite" + . "github.com/ory/fosite" "github.com/stretchr/testify/assert" ) diff --git a/access_response_writer_test.go b/access_response_writer_test.go index e91d80eb4..f993d21a8 100644 --- a/access_response_writer_test.go +++ b/access_response_writer_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "context" diff --git a/access_write_test.go b/access_write_test.go index 2727c29ae..df077f414 100644 --- a/access_write_test.go +++ b/access_write_test.go @@ -6,8 +6,8 @@ import ( "net/http" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/stretchr/testify/assert" ) diff --git a/authorize_error_test.go b/authorize_error_test.go index de9fff497..0d0590888 100644 --- a/authorize_error_test.go +++ b/authorize_error_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/stretchr/testify/assert" ) diff --git a/authorize_request_handler_test.go b/authorize_request_handler_test.go index 9a91353ad..72848f8c9 100644 --- a/authorize_request_handler_test.go +++ b/authorize_request_handler_test.go @@ -7,8 +7,8 @@ import ( "github.com/golang/mock/gomock" "github.com/ory-am/common/pkg" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "context" diff --git a/authorize_response_writer_test.go b/authorize_response_writer_test.go index 9504e19e1..48a08f963 100644 --- a/authorize_response_writer_test.go +++ b/authorize_response_writer_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "context" diff --git a/authorize_write_test.go b/authorize_write_test.go index 1e51a0769..be1e9efb8 100644 --- a/authorize_write_test.go +++ b/authorize_write_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - . "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + . "github.com/ory/fosite/internal" "github.com/stretchr/testify/assert" ) diff --git a/compose/compose.go b/compose/compose.go index c3fe6ef02..e889b70be 100644 --- a/compose/compose.go +++ b/compose/compose.go @@ -3,14 +3,14 @@ package compose import ( "crypto/rsa" - "github.com/ory-am/fosite" + "github.com/ory/fosite" ) type Factory func(config *Config, storage interface{}, strategy interface{}) interface{} // Compose takes a config, a storage, a strategy and handlers to instantiate an OAuth2Provider: // -// import "github.com/ory-am/fosite/compose" +// import "github.com/ory/fosite/compose" // // // var storage = new(MyFositeStorage) // var config = Config { diff --git a/compose/compose_oauth2.go b/compose/compose_oauth2.go index 9441be97f..e007c4bb5 100644 --- a/compose/compose_oauth2.go +++ b/compose/compose_oauth2.go @@ -1,8 +1,8 @@ package compose import ( - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" ) // OAuth2AuthorizeExplicitFactory creates an OAuth2 authorize code grant ("authorize explicit flow") handler and registers diff --git a/compose/compose_openid.go b/compose/compose_openid.go index f231f087b..c5fc8ae19 100644 --- a/compose/compose_openid.go +++ b/compose/compose_openid.go @@ -1,9 +1,9 @@ package compose import ( - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/handler/openid" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/handler/openid" ) // OpenIDConnectExplicitFactory creates an OpenID Connect explicit ("authorize code flow") grant handler. You must add this handler diff --git a/compose/compose_strategy.go b/compose/compose_strategy.go index 946371b99..10b0211eb 100644 --- a/compose/compose_strategy.go +++ b/compose/compose_strategy.go @@ -3,10 +3,10 @@ package compose import ( "crypto/rsa" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/handler/openid" - "github.com/ory-am/fosite/token/hmac" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/handler/openid" + "github.com/ory/fosite/token/hmac" + "github.com/ory/fosite/token/jwt" ) type CommonStrategy struct { diff --git a/fosite_test.go b/fosite_test.go index 06b8e90d6..09d0a3e61 100644 --- a/fosite_test.go +++ b/fosite_test.go @@ -3,8 +3,8 @@ package fosite_test import ( "testing" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" + . "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/generate-mocks.sh b/generate-mocks.sh index 576b19618..a97507ebc 100755 --- a/generate-mocks.sh +++ b/generate-mocks.sh @@ -1,30 +1,30 @@ #!/bin/bash -mockgen -package internal -destination internal/hash.go github.com/ory-am/fosite Hasher -mockgen -package internal -destination internal/storage.go github.com/ory-am/fosite Storage -mockgen -package internal -destination internal/oauth2_storage.go github.com/ory-am/fosite/handler/oauth2 CoreStorage -mockgen -package internal -destination internal/oauth2_strategy.go github.com/ory-am/fosite/handler/oauth2 CoreStrategy -mockgen -package internal -destination internal/authorize_code_storage.go github.com/ory-am/fosite/handler/oauth2 AuthorizeCodeStorage -mockgen -package internal -destination internal/access_token_storage.go github.com/ory-am/fosite/handler/oauth2 AccessTokenStorage -mockgen -package internal -destination internal/refresh_token_strategy.go github.com/ory-am/fosite/handler/oauth2 RefreshTokenStorage -mockgen -package internal -destination internal/oauth2_client_storage.go github.com/ory-am/fosite/handler/oauth2 ClientCredentialsGrantStorage -mockgen -package internal -destination internal/oauth2_explicit_storage.go github.com/ory-am/fosite/handler/oauth2 AuthorizeCodeGrantStorage -mockgen -package internal -destination internal/oauth2_implicit_storage.go github.com/ory-am/fosite/handler/oauth2 ImplicitGrantStorage -mockgen -package internal -destination internal/oauth2_owner_storage.go github.com/ory-am/fosite/handler/oauth2 ResourceOwnerPasswordCredentialsGrantStorage -mockgen -package internal -destination internal/oauth2_refresh_storage.go github.com/ory-am/fosite/handler/oauth2 RefreshTokenGrantStorage -mockgen -package internal -destination internal/oauth2_revoke_storage.go github.com/ory-am/fosite/handler/oauth2 TokenRevocationStorage -mockgen -package internal -destination internal/openid_id_token_storage.go github.com/ory-am/fosite/handler/openid OpenIDConnectRequestStorage -mockgen -package internal -destination internal/access_token_strategy.go github.com/ory-am/fosite/handler/oauth2 AccessTokenStrategy -mockgen -package internal -destination internal/refresh_token_strategy.go github.com/ory-am/fosite/handler/oauth2 RefreshTokenStrategy -mockgen -package internal -destination internal/authorize_code_strategy.go github.com/ory-am/fosite/handler/oauth2 AuthorizeCodeStrategy -mockgen -package internal -destination internal/id_token_strategy.go github.com/ory-am/fosite/handler/openid OpenIDConnectTokenStrategy -mockgen -package internal -destination internal/authorize_handler.go github.com/ory-am/fosite AuthorizeEndpointHandler -mockgen -package internal -destination internal/revoke_handler.go github.com/ory-am/fosite RevocationHandler -mockgen -package internal -destination internal/token_handler.go github.com/ory-am/fosite TokenEndpointHandler -mockgen -package internal -destination internal/introspector.go github.com/ory-am/fosite TokenIntrospector -mockgen -package internal -destination internal/client.go github.com/ory-am/fosite Client -mockgen -package internal -destination internal/request.go github.com/ory-am/fosite Requester -mockgen -package internal -destination internal/access_request.go github.com/ory-am/fosite AccessRequester -mockgen -package internal -destination internal/access_response.go github.com/ory-am/fosite AccessResponder -mockgen -package internal -destination internal/authorize_request.go github.com/ory-am/fosite AuthorizeRequester -mockgen -package internal -destination internal/authorize_response.go github.com/ory-am/fosite AuthorizeResponder \ No newline at end of file +mockgen -package internal -destination internal/hash.go github.com/ory/fosite Hasher +mockgen -package internal -destination internal/storage.go github.com/ory/fosite Storage +mockgen -package internal -destination internal/oauth2_storage.go github.com/ory/fosite/handler/oauth2 CoreStorage +mockgen -package internal -destination internal/oauth2_strategy.go github.com/ory/fosite/handler/oauth2 CoreStrategy +mockgen -package internal -destination internal/authorize_code_storage.go github.com/ory/fosite/handler/oauth2 AuthorizeCodeStorage +mockgen -package internal -destination internal/access_token_storage.go github.com/ory/fosite/handler/oauth2 AccessTokenStorage +mockgen -package internal -destination internal/refresh_token_strategy.go github.com/ory/fosite/handler/oauth2 RefreshTokenStorage +mockgen -package internal -destination internal/oauth2_client_storage.go github.com/ory/fosite/handler/oauth2 ClientCredentialsGrantStorage +mockgen -package internal -destination internal/oauth2_explicit_storage.go github.com/ory/fosite/handler/oauth2 AuthorizeCodeGrantStorage +mockgen -package internal -destination internal/oauth2_implicit_storage.go github.com/ory/fosite/handler/oauth2 ImplicitGrantStorage +mockgen -package internal -destination internal/oauth2_owner_storage.go github.com/ory/fosite/handler/oauth2 ResourceOwnerPasswordCredentialsGrantStorage +mockgen -package internal -destination internal/oauth2_refresh_storage.go github.com/ory/fosite/handler/oauth2 RefreshTokenGrantStorage +mockgen -package internal -destination internal/oauth2_revoke_storage.go github.com/ory/fosite/handler/oauth2 TokenRevocationStorage +mockgen -package internal -destination internal/openid_id_token_storage.go github.com/ory/fosite/handler/openid OpenIDConnectRequestStorage +mockgen -package internal -destination internal/access_token_strategy.go github.com/ory/fosite/handler/oauth2 AccessTokenStrategy +mockgen -package internal -destination internal/refresh_token_strategy.go github.com/ory/fosite/handler/oauth2 RefreshTokenStrategy +mockgen -package internal -destination internal/authorize_code_strategy.go github.com/ory/fosite/handler/oauth2 AuthorizeCodeStrategy +mockgen -package internal -destination internal/id_token_strategy.go github.com/ory/fosite/handler/openid OpenIDConnectTokenStrategy +mockgen -package internal -destination internal/authorize_handler.go github.com/ory/fosite AuthorizeEndpointHandler +mockgen -package internal -destination internal/revoke_handler.go github.com/ory/fosite RevocationHandler +mockgen -package internal -destination internal/token_handler.go github.com/ory/fosite TokenEndpointHandler +mockgen -package internal -destination internal/introspector.go github.com/ory/fosite TokenIntrospector +mockgen -package internal -destination internal/client.go github.com/ory/fosite Client +mockgen -package internal -destination internal/request.go github.com/ory/fosite Requester +mockgen -package internal -destination internal/access_request.go github.com/ory/fosite AccessRequester +mockgen -package internal -destination internal/access_response.go github.com/ory/fosite AccessResponder +mockgen -package internal -destination internal/authorize_request.go github.com/ory/fosite AuthorizeRequester +mockgen -package internal -destination internal/authorize_response.go github.com/ory/fosite AuthorizeResponder \ No newline at end of file diff --git a/glide.yaml b/glide.yaml index a426edbb5..7392e8b2f 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,4 +1,4 @@ -package: github.com/ory-am/fosite +package: github.com/ory/fosite import: - package: github.com/asaskevich/govalidator version: ~5.0.0 diff --git a/handler/oauth2/flow_authorize_code_auth.go b/handler/oauth2/flow_authorize_code_auth.go index f001892ba..c91c51016 100644 --- a/handler/oauth2/flow_authorize_code_auth.go +++ b/handler/oauth2/flow_authorize_code_auth.go @@ -7,7 +7,7 @@ import ( "fmt" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/flow_authorize_code_auth_test.go b/handler/oauth2/flow_authorize_code_auth_test.go index 357ece4ab..a7d81d202 100644 --- a/handler/oauth2/flow_authorize_code_auth_test.go +++ b/handler/oauth2/flow_authorize_code_auth_test.go @@ -8,8 +8,8 @@ import ( "strings" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/flow_authorize_code_storage.go b/handler/oauth2/flow_authorize_code_storage.go index 2fa132f86..ae4ac702c 100644 --- a/handler/oauth2/flow_authorize_code_storage.go +++ b/handler/oauth2/flow_authorize_code_storage.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/flow_authorize_code_token.go b/handler/oauth2/flow_authorize_code_token.go index 1904e2007..cf573001f 100644 --- a/handler/oauth2/flow_authorize_code_token.go +++ b/handler/oauth2/flow_authorize_code_token.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" "net/http" diff --git a/handler/oauth2/flow_authorize_code_token_test.go b/handler/oauth2/flow_authorize_code_token_test.go index e75c339c5..3c3e7ac05 100644 --- a/handler/oauth2/flow_authorize_code_token_test.go +++ b/handler/oauth2/flow_authorize_code_token_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/flow_authorize_implicit.go b/handler/oauth2/flow_authorize_implicit.go index 3aa495b98..cf3ee170d 100644 --- a/handler/oauth2/flow_authorize_implicit.go +++ b/handler/oauth2/flow_authorize_implicit.go @@ -7,7 +7,7 @@ import ( "fmt" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" "strconv" diff --git a/handler/oauth2/flow_authorize_implicit_storage.go b/handler/oauth2/flow_authorize_implicit_storage.go index 97cda430f..5fb1c04ee 100644 --- a/handler/oauth2/flow_authorize_implicit_storage.go +++ b/handler/oauth2/flow_authorize_implicit_storage.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/flow_authorize_implicit_test.go b/handler/oauth2/flow_authorize_implicit_test.go index 5b82a9287..5b8fa32e4 100644 --- a/handler/oauth2/flow_authorize_implicit_test.go +++ b/handler/oauth2/flow_authorize_implicit_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/flow_client_credentials.go b/handler/oauth2/flow_client_credentials.go index 0fc53f7c2..76aefe7d1 100644 --- a/handler/oauth2/flow_client_credentials.go +++ b/handler/oauth2/flow_client_credentials.go @@ -5,7 +5,7 @@ import ( "fmt" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" "time" diff --git a/handler/oauth2/flow_client_credentials_test.go b/handler/oauth2/flow_client_credentials_test.go index ffcafd47a..2f7d29f20 100644 --- a/handler/oauth2/flow_client_credentials_test.go +++ b/handler/oauth2/flow_client_credentials_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/flow_refresh.go b/handler/oauth2/flow_refresh.go index 685c32d02..a319e56ac 100644 --- a/handler/oauth2/flow_refresh.go +++ b/handler/oauth2/flow_refresh.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/flow_refresh_storage.go b/handler/oauth2/flow_refresh_storage.go index 9feff8daf..1144fe38d 100644 --- a/handler/oauth2/flow_refresh_storage.go +++ b/handler/oauth2/flow_refresh_storage.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/flow_refresh_test.go b/handler/oauth2/flow_refresh_test.go index 2e03967b2..238aead0f 100644 --- a/handler/oauth2/flow_refresh_test.go +++ b/handler/oauth2/flow_refresh_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/flow_resource_owner.go b/handler/oauth2/flow_resource_owner.go index 977fe4816..2d7b54ef1 100644 --- a/handler/oauth2/flow_resource_owner.go +++ b/handler/oauth2/flow_resource_owner.go @@ -5,7 +5,7 @@ import ( "fmt" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/flow_resource_owner_test.go b/handler/oauth2/flow_resource_owner_test.go index 083f041ac..7131aa0c2 100644 --- a/handler/oauth2/flow_resource_owner_test.go +++ b/handler/oauth2/flow_resource_owner_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/helper.go b/handler/oauth2/helper.go index fac4a511b..c001f78ad 100644 --- a/handler/oauth2/helper.go +++ b/handler/oauth2/helper.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/helper_test.go b/handler/oauth2/helper_test.go index 67f5945b9..2df4e33f1 100644 --- a/handler/oauth2/helper_test.go +++ b/handler/oauth2/helper_test.go @@ -6,8 +6,8 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/handler/oauth2/introspector.go b/handler/oauth2/introspector.go index 4a3ce132a..31ca470fd 100644 --- a/handler/oauth2/introspector.go +++ b/handler/oauth2/introspector.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/introspector_jwt.go b/handler/oauth2/introspector_jwt.go index 91732bbb8..34d205ff6 100644 --- a/handler/oauth2/introspector_jwt.go +++ b/handler/oauth2/introspector_jwt.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/introspector_jwt_test.go b/handler/oauth2/introspector_jwt_test.go index f35aaba84..21f5c9025 100644 --- a/handler/oauth2/introspector_jwt_test.go +++ b/handler/oauth2/introspector_jwt_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/introspector_test.go b/handler/oauth2/introspector_test.go index b8e48c7fd..83f88c133 100644 --- a/handler/oauth2/introspector_test.go +++ b/handler/oauth2/introspector_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/revocation.go b/handler/oauth2/revocation.go index 9f0eab670..cd0c6eade 100644 --- a/handler/oauth2/revocation.go +++ b/handler/oauth2/revocation.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/revocation_test.go b/handler/oauth2/revocation_test.go index 03af57353..935eaa4be 100644 --- a/handler/oauth2/revocation_test.go +++ b/handler/oauth2/revocation_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/storage.go b/handler/oauth2/storage.go index 62273340a..e9854db97 100644 --- a/handler/oauth2/storage.go +++ b/handler/oauth2/storage.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/strategy.go b/handler/oauth2/strategy.go index 76e3014f4..6a493a8fe 100644 --- a/handler/oauth2/strategy.go +++ b/handler/oauth2/strategy.go @@ -1,7 +1,7 @@ package oauth2 import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/oauth2/strategy_hmacsha.go b/handler/oauth2/strategy_hmacsha.go index 9ab0f2610..15e27e5f8 100644 --- a/handler/oauth2/strategy_hmacsha.go +++ b/handler/oauth2/strategy_hmacsha.go @@ -4,8 +4,8 @@ import ( "time" "fmt" - "github.com/ory-am/fosite" - enigma "github.com/ory-am/fosite/token/hmac" + "github.com/ory/fosite" + enigma "github.com/ory/fosite/token/hmac" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/strategy_hmacsha_test.go b/handler/oauth2/strategy_hmacsha_test.go index 7bcd1fffe..a43618762 100644 --- a/handler/oauth2/strategy_hmacsha_test.go +++ b/handler/oauth2/strategy_hmacsha_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/token/hmac" + "github.com/ory/fosite" + "github.com/ory/fosite/token/hmac" "github.com/stretchr/testify/assert" ) diff --git a/handler/oauth2/strategy_jwt.go b/handler/oauth2/strategy_jwt.go index 7b177c2d1..86be35411 100644 --- a/handler/oauth2/strategy_jwt.go +++ b/handler/oauth2/strategy_jwt.go @@ -5,8 +5,8 @@ import ( "time" jwtx "github.com/dgrijalva/jwt-go" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "context" ) diff --git a/handler/oauth2/strategy_jwt_session.go b/handler/oauth2/strategy_jwt_session.go index 0cde06429..4d34b50a0 100644 --- a/handler/oauth2/strategy_jwt_session.go +++ b/handler/oauth2/strategy_jwt_session.go @@ -3,8 +3,8 @@ package oauth2 import ( "bytes" "encoding/gob" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/token/jwt" "time" ) diff --git a/handler/oauth2/strategy_jwt_test.go b/handler/oauth2/strategy_jwt_test.go index b6403d4aa..0630f3090 100644 --- a/handler/oauth2/strategy_jwt_test.go +++ b/handler/oauth2/strategy_jwt_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/flow_explicit_auth.go b/handler/openid/flow_explicit_auth.go index d4860bdec..b9ed17817 100644 --- a/handler/openid/flow_explicit_auth.go +++ b/handler/openid/flow_explicit_auth.go @@ -3,7 +3,7 @@ package openid import ( "net/http" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/openid/flow_explicit_auth_test.go b/handler/openid/flow_explicit_auth_test.go index cf5651d07..8df99eca1 100644 --- a/handler/openid/flow_explicit_auth_test.go +++ b/handler/openid/flow_explicit_auth_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/flow_explicit_token.go b/handler/openid/flow_explicit_token.go index badf9720d..5b05ba499 100644 --- a/handler/openid/flow_explicit_token.go +++ b/handler/openid/flow_explicit_token.go @@ -3,7 +3,7 @@ package openid import ( "net/http" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/handler/openid/flow_explicit_token_test.go b/handler/openid/flow_explicit_token_test.go index ca04d9156..943526e7e 100644 --- a/handler/openid/flow_explicit_token_test.go +++ b/handler/openid/flow_explicit_token_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/flow_hybrid.go b/handler/openid/flow_hybrid.go index fd2992d63..4b1bc750d 100644 --- a/handler/openid/flow_hybrid.go +++ b/handler/openid/flow_hybrid.go @@ -6,9 +6,9 @@ import ( "fmt" "encoding/base64" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "context" ) diff --git a/handler/openid/flow_hybrid_test.go b/handler/openid/flow_hybrid_test.go index db667e6f3..9429345a7 100644 --- a/handler/openid/flow_hybrid_test.go +++ b/handler/openid/flow_hybrid_test.go @@ -7,12 +7,12 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/storage" - "github.com/ory-am/fosite/token/hmac" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/storage" + "github.com/ory/fosite/token/hmac" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/flow_implicit.go b/handler/openid/flow_implicit.go index 669349b82..d3c6264c1 100644 --- a/handler/openid/flow_implicit.go +++ b/handler/openid/flow_implicit.go @@ -6,9 +6,9 @@ import ( "fmt" "encoding/base64" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "context" ) diff --git a/handler/openid/flow_implicit_test.go b/handler/openid/flow_implicit_test.go index e3613621c..9948cf215 100644 --- a/handler/openid/flow_implicit_test.go +++ b/handler/openid/flow_implicit_test.go @@ -7,10 +7,10 @@ import ( "time" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/storage" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/storage" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/helper.go b/handler/openid/helper.go index 4dce45b52..ad82d4938 100644 --- a/handler/openid/helper.go +++ b/handler/openid/helper.go @@ -3,7 +3,7 @@ package openid import ( "net/http" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/openid/helper_test.go b/handler/openid/helper_test.go index 707eed1fb..dac71709c 100644 --- a/handler/openid/helper_test.go +++ b/handler/openid/helper_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/handler/openid/storage.go b/handler/openid/storage.go index 50e699446..a63a1c368 100644 --- a/handler/openid/storage.go +++ b/handler/openid/storage.go @@ -1,7 +1,7 @@ package openid import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/openid/strategy.go b/handler/openid/strategy.go index 2dcfe930d..d442819b1 100644 --- a/handler/openid/strategy.go +++ b/handler/openid/strategy.go @@ -3,7 +3,7 @@ package openid import ( "net/http" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "context" ) diff --git a/handler/openid/strategy_jwt.go b/handler/openid/strategy_jwt.go index 6dd89c47f..56cde6cdb 100644 --- a/handler/openid/strategy_jwt.go +++ b/handler/openid/strategy_jwt.go @@ -6,8 +6,8 @@ import ( "time" "bytes" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/token/jwt" "github.com/pkg/errors" "context" ) diff --git a/handler/openid/strategy_jwt_test.go b/handler/openid/strategy_jwt_test.go index 5cdee3fa9..8712a03a0 100644 --- a/handler/openid/strategy_jwt_test.go +++ b/handler/openid/strategy_jwt_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/token/jwt" "github.com/stretchr/testify/assert" ) diff --git a/integration/authorize_code_grant_test.go b/integration/authorize_code_grant_test.go index 1dab0ff67..e63b0ce80 100644 --- a/integration/authorize_code_grant_test.go +++ b/integration/authorize_code_grant_test.go @@ -5,9 +5,9 @@ import ( "net/http" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/oauth2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" goauth "golang.org/x/oauth2" diff --git a/integration/authorize_implicit_grant_test.go b/integration/authorize_implicit_grant_test.go index a189a38d5..31bcf3164 100644 --- a/integration/authorize_implicit_grant_test.go +++ b/integration/authorize_implicit_grant_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/oauth2" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/integration/client_credentials_grant_test.go b/integration/client_credentials_grant_test.go index a1178694f..9e278d3c4 100644 --- a/integration/client_credentials_grant_test.go +++ b/integration/client_credentials_grant_test.go @@ -3,9 +3,9 @@ package integration_test import ( "testing" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/oauth2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" goauth "golang.org/x/oauth2" diff --git a/integration/helper_endpoints_test.go b/integration/helper_endpoints_test.go index 3db9d76bb..52189a76e 100644 --- a/integration/helper_endpoints_test.go +++ b/integration/helper_endpoints_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/integration/helper_setup_test.go b/integration/helper_setup_test.go index 641b523f4..ef42d492b 100644 --- a/integration/helper_setup_test.go +++ b/integration/helper_setup_test.go @@ -6,13 +6,13 @@ import ( "time" "github.com/gorilla/mux" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/handler/oauth2" - "github.com/ory-am/fosite/handler/openid" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/storage" - "github.com/ory-am/fosite/token/hmac" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite" + "github.com/ory/fosite/handler/oauth2" + "github.com/ory/fosite/handler/openid" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/storage" + "github.com/ory/fosite/token/hmac" + "github.com/ory/fosite/token/jwt" goauth "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" ) diff --git a/integration/introspect_token_test.go b/integration/introspect_token_test.go index 581f224f0..59b878722 100644 --- a/integration/introspect_token_test.go +++ b/integration/introspect_token_test.go @@ -4,9 +4,9 @@ import ( "testing" "encoding/json" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/oauth2" "github.com/parnurzeal/gorequest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/integration/oidc_explicit_test.go b/integration/oidc_explicit_test.go index eb17c5cb4..1baaf7b19 100644 --- a/integration/oidc_explicit_test.go +++ b/integration/oidc_explicit_test.go @@ -6,10 +6,10 @@ import ( "fmt" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/openid" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/openid" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" "github.com/stretchr/testify/require" "golang.org/x/oauth2" ) diff --git a/integration/oidc_implicit_hybrid_test.go b/integration/oidc_implicit_hybrid_test.go index 643fdfed4..f51c8ae6a 100644 --- a/integration/oidc_implicit_hybrid_test.go +++ b/integration/oidc_implicit_hybrid_test.go @@ -13,10 +13,10 @@ import ( "github.com/stretchr/testify/require" "golang.org/x/oauth2" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/openid" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/token/jwt" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/openid" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/token/jwt" ) func TestOIDCImplicitFlow(t *testing.T) { diff --git a/integration/refresh_token_grant_test.go b/integration/refresh_token_grant_test.go index dd8607acc..65af99ec7 100644 --- a/integration/refresh_token_grant_test.go +++ b/integration/refresh_token_grant_test.go @@ -6,9 +6,9 @@ import ( "net/http" "time" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - hst "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + hst "github.com/ory/fosite/handler/oauth2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/oauth2" diff --git a/integration/resource_owner_password_credentials_grant_test.go b/integration/resource_owner_password_credentials_grant_test.go index f4041224f..085b2099e 100644 --- a/integration/resource_owner_password_credentials_grant_test.go +++ b/integration/resource_owner_password_credentials_grant_test.go @@ -3,9 +3,9 @@ package integration_test import ( "testing" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - hst "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + hst "github.com/ory/fosite/handler/oauth2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/oauth2" diff --git a/integration/revoke_token_test.go b/integration/revoke_token_test.go index 3d2a156de..a876be72f 100644 --- a/integration/revoke_token_test.go +++ b/integration/revoke_token_test.go @@ -3,9 +3,9 @@ package integration_test import ( "testing" - "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/handler/oauth2" + "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/handler/oauth2" "github.com/parnurzeal/gorequest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/access_request.go b/internal/access_request.go index 1e243513f..3dfbe1996 100644 --- a/internal/access_request.go +++ b/internal/access_request.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" url "net/url" time "time" ) diff --git a/internal/access_response.go b/internal/access_response.go index 93b815036..cafc98a28 100644 --- a/internal/access_response.go +++ b/internal/access_response.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" time "time" ) diff --git a/internal/access_token_storage.go b/internal/access_token_storage.go index f4b9cec71..f0a76b9eb 100644 --- a/internal/access_token_storage.go +++ b/internal/access_token_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/access_token_strategy.go b/internal/access_token_strategy.go index 93626170d..4fa6e4ef3 100644 --- a/internal/access_token_strategy.go +++ b/internal/access_token_strategy.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/authorize_code_storage.go b/internal/authorize_code_storage.go index 27dea6357..623cf3674 100644 --- a/internal/authorize_code_storage.go +++ b/internal/authorize_code_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/authorize_code_strategy.go b/internal/authorize_code_strategy.go index 52955264b..4c1a7a970 100644 --- a/internal/authorize_code_strategy.go +++ b/internal/authorize_code_strategy.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/authorize_handler.go b/internal/authorize_handler.go index 6d61142d0..1123eaa33 100644 --- a/internal/authorize_handler.go +++ b/internal/authorize_handler.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" http "net/http" ) diff --git a/internal/authorize_request.go b/internal/authorize_request.go index 46174ddd0..0f18a9d59 100644 --- a/internal/authorize_request.go +++ b/internal/authorize_request.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" url "net/url" time "time" ) diff --git a/internal/client.go b/internal/client.go index 9f588f035..49a381a86 100644 --- a/internal/client.go +++ b/internal/client.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" ) // Mock of Client interface diff --git a/internal/id_token_strategy.go b/internal/id_token_strategy.go index 7f85ca82b..c491c72bc 100644 --- a/internal/id_token_strategy.go +++ b/internal/id_token_strategy.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" http "net/http" ) diff --git a/internal/introspector.go b/internal/introspector.go index 7c3d02936..facd31c1e 100644 --- a/internal/introspector.go +++ b/internal/introspector.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_client_storage.go b/internal/oauth2_client_storage.go index 7e063fb45..77c0ad4af 100644 --- a/internal/oauth2_client_storage.go +++ b/internal/oauth2_client_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_explicit_storage.go b/internal/oauth2_explicit_storage.go index e33309f0b..00cf76b96 100644 --- a/internal/oauth2_explicit_storage.go +++ b/internal/oauth2_explicit_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_implicit_storage.go b/internal/oauth2_implicit_storage.go index 19485054c..a0ca99319 100644 --- a/internal/oauth2_implicit_storage.go +++ b/internal/oauth2_implicit_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_owner_storage.go b/internal/oauth2_owner_storage.go index 480de1eb9..d7b40d3b0 100644 --- a/internal/oauth2_owner_storage.go +++ b/internal/oauth2_owner_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_refresh_storage.go b/internal/oauth2_refresh_storage.go index f29aea0b9..f76587aaf 100644 --- a/internal/oauth2_refresh_storage.go +++ b/internal/oauth2_refresh_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_revoke_storage.go b/internal/oauth2_revoke_storage.go index 146123231..9281a428f 100644 --- a/internal/oauth2_revoke_storage.go +++ b/internal/oauth2_revoke_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_storage.go b/internal/oauth2_storage.go index bf0497365..11979a492 100644 --- a/internal/oauth2_storage.go +++ b/internal/oauth2_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/oauth2_strategy.go b/internal/oauth2_strategy.go index d7d5ee451..2d2e1006e 100644 --- a/internal/oauth2_strategy.go +++ b/internal/oauth2_strategy.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/openid_id_token_storage.go b/internal/openid_id_token_storage.go index 29d79f528..32b7114c7 100644 --- a/internal/openid_id_token_storage.go +++ b/internal/openid_id_token_storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/refresh_token_strategy.go b/internal/refresh_token_strategy.go index ef9701d92..03c71d394 100644 --- a/internal/refresh_token_strategy.go +++ b/internal/refresh_token_strategy.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/request.go b/internal/request.go index 2f4603330..256719e00 100644 --- a/internal/request.go +++ b/internal/request.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" url "net/url" time "time" ) diff --git a/internal/revoke_handler.go b/internal/revoke_handler.go index a5b66817c..56461d2af 100644 --- a/internal/revoke_handler.go +++ b/internal/revoke_handler.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" ) diff --git a/internal/storage.go b/internal/storage.go index 6bba03875..822606c74 100644 --- a/internal/storage.go +++ b/internal/storage.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" ) // Mock of Storage interface diff --git a/internal/token_handler.go b/internal/token_handler.go index 1fb942f7c..e5f228ce7 100644 --- a/internal/token_handler.go +++ b/internal/token_handler.go @@ -5,7 +5,7 @@ package internal import ( gomock "github.com/golang/mock/gomock" - fosite "github.com/ory-am/fosite" + fosite "github.com/ory/fosite" context "context" http "net/http" ) diff --git a/introspect_test.go b/introspect_test.go index 43ec95dc4..085f065be 100644 --- a/introspect_test.go +++ b/introspect_test.go @@ -5,10 +5,10 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/storage" + . "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/storage" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "context" diff --git a/introspection_request_handler_test.go b/introspection_request_handler_test.go index 4bf2759bc..53c5d8527 100644 --- a/introspection_request_handler_test.go +++ b/introspection_request_handler_test.go @@ -2,11 +2,11 @@ package fosite_test import ( "github.com/golang/mock/gomock" - "github.com/ory-am/fosite" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/compose" - "github.com/ory-am/fosite/internal" - "github.com/ory-am/fosite/storage" + "github.com/ory/fosite" + . "github.com/ory/fosite" + "github.com/ory/fosite/compose" + "github.com/ory/fosite/internal" + "github.com/ory/fosite/storage" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "net/http" diff --git a/introspection_response_writer_test.go b/introspection_response_writer_test.go index ea473defb..27af5434c 100644 --- a/introspection_response_writer_test.go +++ b/introspection_response_writer_test.go @@ -2,8 +2,8 @@ package fosite_test import ( "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "net/http" "testing" diff --git a/request_test.go b/request_test.go index 2517f0180..024dfc9da 100644 --- a/request_test.go +++ b/request_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - . "github.com/ory-am/fosite" + . "github.com/ory/fosite" "github.com/stretchr/testify/assert" ) diff --git a/revoke_handler_test.go b/revoke_handler_test.go index 3ef13c159..8bb254b58 100644 --- a/revoke_handler_test.go +++ b/revoke_handler_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/golang/mock/gomock" - . "github.com/ory-am/fosite" - "github.com/ory-am/fosite/internal" + . "github.com/ory/fosite" + "github.com/ory/fosite/internal" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/storage/memory.go b/storage/memory.go index d9b5fc8a6..76c3e8a8a 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -1,7 +1,7 @@ package storage import ( - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" "context" ) diff --git a/token/hmac/hmacsha.go b/token/hmac/hmacsha.go index 9544e2411..7f44565ea 100644 --- a/token/hmac/hmacsha.go +++ b/token/hmac/hmacsha.go @@ -9,7 +9,7 @@ import ( "fmt" "strings" - "github.com/ory-am/fosite" + "github.com/ory/fosite" "github.com/pkg/errors" ) diff --git a/token/jwt/claims_id_token_test.go b/token/jwt/claims_id_token_test.go index e48496cd6..7381bdd7f 100644 --- a/token/jwt/claims_id_token_test.go +++ b/token/jwt/claims_id_token_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - . "github.com/ory-am/fosite/token/jwt" + . "github.com/ory/fosite/token/jwt" "github.com/stretchr/testify/assert" ) diff --git a/token/jwt/claims_jwt_test.go b/token/jwt/claims_jwt_test.go index c9ba09df0..3d703183f 100644 --- a/token/jwt/claims_jwt_test.go +++ b/token/jwt/claims_jwt_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - . "github.com/ory-am/fosite/token/jwt" + . "github.com/ory/fosite/token/jwt" "github.com/stretchr/testify/assert" ) diff --git a/token/jwt/jwt_test.go b/token/jwt/jwt_test.go index c123f3ecf..f3feda087 100644 --- a/token/jwt/jwt_test.go +++ b/token/jwt/jwt_test.go @@ -6,7 +6,7 @@ import ( "time" - "github.com/ory-am/fosite/internal" + "github.com/ory/fosite/internal" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )