• Stephan Renatus's avatar
    handlers/connector_login: update AuthRequest irregardless of method · f18d7afc
    Stephan Renatus authored
    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: 's avatarStephan Renatus <srenatus@chef.io>
    f18d7afc
Name
Last commit
Last update
Documentation Loading commit data...
api Loading commit data...
cmd Loading commit data...
connector Loading commit data...
examples Loading commit data...
scripts Loading commit data...
server Loading commit data...
storage Loading commit data...
vendor Loading commit data...
version Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
DCO Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
glide.lock Loading commit data...
glide.yaml Loading commit data...
glide_test.go Loading commit data...