Solved!
Found my solution by asking it the ckan mailing list. Altering your apache.wsgi running in your ckan should do the trick. Take a look at this file and add line 13 14 15 17 to your apache.wsgi file and you should be fine. At least I stopped getting endless redirects and was able to log-in after I filled in my Basic Authentication. This however implies that when you use the CKAN API you'll need to use X-CKAN-API-Key header or specify another header in the config file.