title: K8s -> nginx Ingress: SSO
body: <p>I have a service that has HTTP Basic Auth. In front of it  I have nginx Ingress, who also has basic-auth. How can I attach Authorization header with the credentials after Sign In with the Ingress, to achieve Single-Sign-On?</p>
  
  <p>This is the configuration of my Ingress:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    annotations:
      kubernetes.io/ingress.class: nginx
      nginx.ingress.kubernetes.io/auth-realm: Authentication Required
      nginx.ingress.kubernetes.io/auth-secret: kibana-user-basic-auth
      nginx.ingress.kubernetes.io/auth-type: basic
    name: kibana-user
    namespace: {{.Release.Namespace}}
  spec:
    tls:
    - secretName: kibana-tls
      hosts:
      - {{.Values.ingress.user.host}}
    rules:
    - host: {{.Values.ingress.user.host}}
      http:
        paths:
        - backend:
            serviceName: kibana-logging
            servicePort: {{ .Values.kibana.service.internalPort }}
          path: /
  </code></pre>