dex/server
Stephan Renatus f18d7afc6f handlers/connector_login: update AuthRequest irregardless of method
Before, you could not POST your credentials to a password-connector's
endpoint without GETing that endpoint first. While this makes sense for
browser clients; automated interactions with Dex don't need to look at
the password form to fill it in.

A symptom of that missing GET was that the POST succeeded (!) with

    login successful: connector "", username="admin", email="admin@example.com", groups=[]

Note the connector "". A subsequent call to finalizeLogin would then
fail with

    connector with ID "" not found: failed to get connector object from storage: not found

Now, the connector ID of an auth request will be updated for both GETs
and POSTs.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
2017-12-08 11:49:52 +01:00
..
internal *: regenerate proto 2017-12-01 11:29:33 -08:00
api.go server: fix panic caused by deleting refresh token twice through api 2017-09-05 23:56:34 -07:00
api_test.go server: fix panic caused by deleting refresh token twice through api 2017-09-05 23:56:34 -07:00
doc.go initial commit 2016-07-26 15:51:24 -07:00
handlers.go handlers/connector_login: update AuthRequest irregardless of method 2017-12-08 11:49:52 +01:00
handlers_test.go *: update go-oidc and use standard library's context package 2017-03-08 10:33:19 -08:00
oauth2.go Cross clients improvement - requesting client ID always added to the audience claim 2017-09-28 18:30:15 +02:00
oauth2_test.go server: fix localhost redirect validation for public clients 2017-05-09 17:09:20 -07:00
rotation.go : update {S->s}irupsen/logrus 2017-07-25 13:46:44 -07:00
rotation_test.go : update {S->s}irupsen/logrus 2017-07-25 13:46:44 -07:00
server.go connector: implement Microsoft connector 2017-11-23 17:01:34 +03:00
server_test.go password connectors: allow overriding the username attribute (password prompt) 2017-11-09 09:30:03 +01:00
templates.go Set a proper status code before sending an error status page 2017-12-01 14:23:45 +09:00
templates_test.go *: add theme based frontend configuration 2016-11-30 17:20:21 -08:00