providers/proxy: don't include hostname and scheme in redirect when we only got a path and not a full URL
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -56,7 +56,7 @@ func TestForwardHandleNginx_Single_URI(t *testing.T) { | ||||
| 	assert.Equal(t, rr.Code, http.StatusUnauthorized) | ||||
|  | ||||
| 	s, _ := a.sessions.Get(req, constants.SeesionName) | ||||
| 	assert.Equal(t, "https://foo.bar/app", s.Values[constants.SessionRedirect]) | ||||
| 	assert.Equal(t, "/app", s.Values[constants.SessionRedirect]) | ||||
| } | ||||
|  | ||||
| func TestForwardHandleNginx_Single_Claims(t *testing.T) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer