mirror of https://github.com/ory/hydra
chore: synchronize workspaces
This commit is contained in:
parent
4df21fdf76
commit
3a372fdea2
|
|
@ -266,7 +266,7 @@ func TestValidateCsrfSession(t *testing.T) {
|
|||
assert.NoError(t, err, "failed to save cookie %s", c.name)
|
||||
}
|
||||
|
||||
err := ValidateCsrfSession(r, config, store, name, tc.csrfValue)
|
||||
err := ValidateCsrfSession(r, config, store, name, tc.csrfValue, nil)
|
||||
if tc.expectError {
|
||||
assert.Error(t, err)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -295,9 +295,11 @@ func (f *Flow) HandleLoginRequest(h *consent.HandledLoginRequest) error {
|
|||
f.LoginExtendSessionLifespan = h.ExtendSessionLifespan
|
||||
f.ACR = h.ACR
|
||||
f.AMR = h.AMR
|
||||
if h.Context == nil {
|
||||
|
||||
if len(h.Context) > 0 {
|
||||
f.Context = h.Context
|
||||
}
|
||||
|
||||
f.LoginWasUsed = h.WasHandled
|
||||
f.LoginAuthenticatedAt = h.AuthenticatedAt
|
||||
return nil
|
||||
|
|
@ -390,7 +392,7 @@ func (f *Flow) HandleConsentRequest(r *consent.AcceptOAuth2ConsentRequest) error
|
|||
f.ConsentWasHandled = r.WasHandled
|
||||
f.ConsentError = r.Error
|
||||
|
||||
if r.Context != nil {
|
||||
if len(r.Context) > 0 {
|
||||
f.Context = r.Context
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue