Change HTTP header
How do I change the HTTP header name? Also, I'm using an OIDC authenticator and the desired username comes at the end of "x-amzn-oidc-identity" header. It is not hard to get this info by manipulating the string, but I can't figure out where to do it.
Any suggestions??
Thanks in advance and congrats for this very useful authenticator!!
Try:
c.RemoteUserAuthenticator.header_name = "MY_HTTP_HEADER"
or
c.RemoteUserLocalAuthenticator.header_name = "MY_HTTP_HEADER"
depending on the class you are using.
Is there a way to extract a specific part of the value of this header? I mean, if I receive an email address and I want to remove the "@domain.com" for example...
Take a look at https://github.com/cwaldbieser/jhub_remote_user_authenticator/issues/19. I pushed an experimental branch that may address this. If I get some feedback that it works, I will merge it into the master branch.