Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
72 lines (28 loc) · 2.33 KB

https-authorization-and-girder-authorization.md

File metadata and controls

72 lines (28 loc) · 2.33 KB

HTTPS, Authorization and Girder-Authorization

finetjul on 2019-09-14T08:23:54.961Z

Hi,

I am having challenges to login with Girder available under HTTPS.

Related to the following change:

github.com/girder/girder

brianhelba

"Authorization" is a standard RFC7235 header, which is automatically supported
by nearly any third-party HTTP client. Using "Authorization" as the preferred
header makes...

by brianhelba on 11:48PM - 06 May 19 UTC

changed 6 files with 11 additions and 12 deletions.

I don’t understand how I can give both the HTTPS Authorization header and the Girder Authorization headers at the same time. With Girder 2, I believe I had the following headers in my api/v1/user/authentication request and it worked well: Authorization=Basic myHTTPSBase64LoginPwd; Girder-Authorization=Basic myGirderBase64LoginPwd

If I do the same with Girder 3, Girder considers only myHTTPSBase64LoginPwd and it ignores Girder-Authorization

I guess that should be an easy fix server side (use ‘Girder-Authorization’ if available in request headers). However, on the client side, should “Girder-Authorization” be sent if URL starts with HTTPS ?

What do you think ?


Zach_Mullen on 2019-09-14T23:21:00.913Z

Hi Julien,

Just so I understand, the issue here is that you have some front-end layer that requires you to log in via the Authorization header, but you also need a separate login header for Girder, so you’re passing both on the same request? (FWIW, this has nothing to do with HTTPS, all of this is inside HTTP-land.)

I’d be fine to change Girder to look for Girder-Authorization prior to Authorization, but a proper workaround, assuming you have control over the front-end service that needs the Authorization header, would be to configure it to not forward that header to Girder.