-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
Codecov Report
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
+ Coverage 87.08% 87.69% +0.60%
==========================================
Files 6 8 +2
Lines 457 455 -2
==========================================
+ Hits 398 399 +1
+ Misses 38 34 -4
- Partials 21 22 +1
Continue to review full report at Codecov.
|
6df6068
to
530df3e
Compare
Can we disregard the red flag on coverage?
|
login, err := c.hydra.GetLoginRequest(req) | ||
if err != nil { | ||
common.WriteErrorResponsef(w, logger, | ||
http.StatusBadGateway, "failed to fetch login request from hydra: %s", err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is http.StatusBadGateway the appropriate header for all errors returned from GetLoginRequest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I don't know. There is a login.Error() string
method... I guess we can figure that out later.
@@ -17,6 +17,9 @@ import ( | |||
"strings" | |||
"testing" | |||
|
|||
"github.com/ory/hydra-client-go/client/admin" | |||
"github.com/ory/hydra-client-go/models" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -23,6 +23,7 @@ services: | |||
- AUTH_REST_GOOGLE_CLIENTSECRET=TODO | |||
- AUTH_REST_SDS_URL=TODO # onboard user: https://github.com/trustbloc/hub-auth/issues/38 | |||
- AUTH_REST_KEYSERVER_URL=TODO # onboard user: https://github.com/trustbloc/hub-auth/issues/38 | |||
- AUTH_REST_HYDRA_URL=http://TODO.com # setup Hydra in BDD tests: https://github.com/trustbloc/hub-auth/issues/52 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add the TODO word here to be consistent with the other TODOs
(and I guess that would apply to the TODOs above these two lines as well...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@llorllale Only a few minor things to take a quick look at - nothing major. Can be merged |
Signed-off-by: George Aristy <george.aristy@securekey.com>
closes #50
/hydra/login
Signed-off-by: George Aristy george.aristy@securekey.com