Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Hydra's paths and updated to v0.8.5 #36

Merged
merged 2 commits into from
Jun 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Identity Provider (IdP) for Hydra
[![Build Status](https://travis-ci.org/janekolszak/idp.svg?branch=master)](https://travis-ci.org/janekolszak/idp) [![Code Climate](https://codeclimate.com/github/janekolszak/idp/badges/gpa.svg)](https://codeclimate.com/github/janekolszak/idp) [![GoDoc](https://godoc.org/github.com/janekolszak/idp?status.svg)](https://godoc.org/github.com/janekolszak/idp) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?maxAge=2592000)](https://gitter.im/janekolszak/idp)

This is a helper library for handling *challenge* requests from [Hydra](https://github.com/ory-am/hydra), it handles:
This is a helper library for handling *challenge* requests from [Hydra](https://github.com/ory/hydra), it handles:
- Storing challenge in a short lived cookie instead of query parameters
- Passing user's consent to Hydra
- Retriving keys from Hydra and using them for JWT verification
Expand Down
4 changes: 2 additions & 2 deletions challenge.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Package for handling challenge requests from Hydra(https://github.com/ory-am/hydra).
// Package for handling challenge requests from Hydra(https://github.com/ory/hydra).
package idp

import (
"encoding/gob"
jwt "github.com/dgrijalva/jwt-go"
// "github.com/gorilla/sessions"
hclient "github.com/ory-am/hydra/client"
hclient "github.com/ory/hydra/client"
"net/http"
"time"
)
Expand Down
87 changes: 37 additions & 50 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package: .
package: github.com/janekolszak/idp
import:
- package: github.com/dgrijalva/jwt-go
version: ~3.0.0
- package: github.com/gorilla/sessions
- package: github.com/ory-am/hydra
version: ~0.7.11
version: ~1.1.0
- package: github.com/ory/hydra
version: ~0.8.5
subpackages:
- client
- jwk
Expand Down
8 changes: 4 additions & 4 deletions idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

jwt "github.com/dgrijalva/jwt-go"
"github.com/gorilla/sessions"
hclient "github.com/ory-am/hydra/client"
hjwk "github.com/ory-am/hydra/jwk"
hoauth2 "github.com/ory-am/hydra/oauth2"
hydra "github.com/ory-am/hydra/sdk"
hclient "github.com/ory/hydra/client"
hjwk "github.com/ory/hydra/jwk"
hoauth2 "github.com/ory/hydra/oauth2"
hydra "github.com/ory/hydra/sdk"
"github.com/patrickmn/go-cache"
)

Expand Down