diff --git a/README.md b/README.md index 2eeef573c47..87b028ce97e 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ If you wish to compile ORY Hydra yourself, you need to install and set up [Go 1. to your `$PATH`. To do so, run the following commands in a shell (bash, sh, cmd.exe, ...): ``` -go get github.com/ory/hydra +go get -d github.com/ory/hydra go get github.com/Masterminds/glide cd $GOPATH/src/github.com/ory/hydra glide install @@ -235,7 +235,7 @@ Run `hydra -h` or `hydra help`. Developing with ORY Hydra is as easy as: ``` -go get github.com/ory/hydra +go get -d github.com/ory/hydra go get github.com/Masterminds/glide cd $GOPATH/src/github.com/ory/hydra glide install diff --git a/oauth2/fosite_store_test.go b/oauth2/fosite_store_test.go index 60434eb6b53..973d3052477 100644 --- a/oauth2/fosite_store_test.go +++ b/oauth2/fosite_store_test.go @@ -72,31 +72,6 @@ var defaultRequest = fosite.Request{ Session: &fosite.DefaultSession{Subject: "bar"}, } -func TestCreateImplicitAccessTokenSession(t *testing.T) { - ctx := context.Background() - for k, m := range clientManagers { - t.Run(fmt.Sprintf("case=%s", k), func(t *testing.T) { - - _, err := m.GetAccessTokenSession(ctx, "implicit-4321", &fosite.DefaultSession{}) - assert.NotNil(t, err) - - err = m.CreateImplicitAccessTokenSession(ctx, "implicit-4321", &defaultRequest) - assert.Nil(t, err) - - res, err := m.GetAccessTokenSession(ctx, "implicit-4321", &fosite.DefaultSession{}) - require.Nil(t, err) - c.AssertObjectKeysEqual(t, &defaultRequest, res, "Scopes", "GrantedScopes", "Form", "Session") - - err = m.DeleteAccessTokenSession(ctx, "implicit-4321") - assert.Nil(t, err) - - time.Sleep(100 * time.Millisecond) - - _, err = m.GetAccessTokenSession(ctx, "implicit-4321", &fosite.DefaultSession{}) - assert.NotNil(t, err) - }) - } -} func TestCreateGetDeleteAuthorizeCodes(t *testing.T) { ctx := context.Background() for k, m := range clientManagers { diff --git a/pkg/fosite_storer.go b/pkg/fosite_storer.go index 6cb3dec5371..d98993397e5 100644 --- a/pkg/fosite_storer.go +++ b/pkg/fosite_storer.go @@ -13,7 +13,6 @@ type FositeStorer interface { fosite.Storage oauth2.AuthorizeCodeGrantStorage oauth2.RefreshTokenGrantStorage - oauth2.ImplicitGrantStorage openid.OpenIDConnectRequestStorage RevokeRefreshToken(ctx context.Context, requestID string) error