SAML not working for jupyterhub

Hello Team,

We have been trying to do saml on our jupyterhub but its not generating saml request to IDP.
We have ADFS as idp and have put required metadata to it. Other applications like cloudera elk are working with sam ADFS setup.

unable to attache config file hence putting all config here
[root@cdhprdedge02 bin]# grep -Ev ‘(^#|^$)’ jupyterhub_config.py
c.JupyterHub.authenticator_class = ‘samlauthenticator.SAMLAuthenticator’
c.SAMLAuthenticator.metadata_filepath = ‘/data2/python-3.9.10/bin/adfsuat.axisb.com_FederationMetadataJupy.xml’
c.SAMLAuthenticator.entity_id= ‘jpprod’
c.SAMLAuthenticator.acs_endpoint_url = ‘https://domain:8083/hub
c.SAMLAuthenticator.login_post_field = ‘R’
c.SAMLAuthenticator.idp_timezone = ‘Asia/Kolkata’
c.JupyterHub.hub_ip = ‘127.0.0.1’
c.JupyterHub.hub_port = 54321
c.JupyterHub.ssl_cert = ‘/data1/jupyterhub/virtenv/etc/jupyterhub/cert.pem’
c.JupyterHub.ssl_key = ‘/data1/jupyterhub/virtenv/etc/jupyterhub/jupy1.key’
c.Spawner.cmd = [’/data2/python-3.9.10/bin/jupyterhub-singleuser’]
c.JupyterHub.ip = ‘10.x.xxx.xxx’
c.JupyterHub.port = 8083
c.ConfigurableHTTPProxy.api_url = ‘http://localhost:5432
[root@cdhprdedge02 bin]#

Below are the version details,

[root@cdhprdedge02 bin]# ./pip3.9 list | grep -i jupyter
jupyter-client 7.1.2
jupyter-core 4.9.1
jupyter-server 1.13.4
jupyter-telemetry 0.1.0
jupyterhub 2.1.1
jupyterhub-samlauthenticator 0.0.9
jupyterlab 3.2.8
jupyterlab-pygments 0.1.2
jupyterlab-server 2.10.3
jupyterlab-widgets 1.0.2

Below are the logs
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:68:8)
[I 2022-03-02 11:43:39.859 JupyterHub app:2766] Running JupyterHub version 2.1.1
[I 2022-03-02 11:43:39.859 JupyterHub app:2796] Using Authenticator: samlauthenticator.samlauthenticator.SAMLAuthenticator
[I 2022-03-02 11:43:39.859 JupyterHub app:2796] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-2.1.1
[I 2022-03-02 11:43:39.859 JupyterHub app:2796] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-2.1.1
[I 2022-03-02 11:43:39.868 JupyterHub app:1606] Loading cookie_secret from /data2/python-3.9.10/bin/jupyterhub_cookie_secret
[I 2022-03-02 11:43:40.117 JupyterHub proxy:496] Generating new CONFIGPROXY_AUTH_TOKEN
[I 2022-03-02 11:43:40.138 JupyterHub app:1924] Not using allowed_users. Any authenticated user will be allowed.
[I 2022-03-02 11:43:40.197 JupyterHub app:2835] Initialized 0 spawners in 0.007 seconds
[W 2022-03-02 11:43:40.200 JupyterHub proxy:565] Found proxy pid file: /data2/python-3.9.10/bin/jupyterhub-proxy.pid
[W 2022-03-02 11:43:40.200 JupyterHub proxy:582] Proxy still running at pid=48129
[W 2022-03-02 11:43:43.208 JupyterHub proxy:602] Stopped proxy at pid=48129
[I 2022-03-02 11:43:43.210 JupyterHub proxy:691] Starting proxy @ https://ip:8083/
11:43:44.667 [ConfigProxy] ESC[32minfoESC[39m: Proxying https://ip:8083 to (no default)
11:43:44.687 [ConfigProxy] ESC[32minfoESC[39m: Proxy API at http://localhost:5432/api/routes
11:43:45.209 [ConfigProxy] ESC[32minfoESC[39m: 200 GET /api/routes
[I 2022-03-02 11:43:45.210 JupyterHub app:3084] Hub API listening on http://127.0.0.1:54321/hub/
11:43:45.218 [ConfigProxy] ESC[32minfoESC[39m: 200 GET /api/routes
[I 2022-03-02 11:43:45.218 JupyterHub proxy:431] Adding route for Hub: / => http://127.0.0.1:54321
11:43:45.221 [ConfigProxy] ESC[32minfoESC[39m: Adding route / → http://127.0.0.1:54321
11:43:45.226 [ConfigProxy] ESC[32minfoESC[39m: Route added / → http://127.0.0.1:54321
11:43:45.228 [ConfigProxy] ESC[32minfoESC[39m: 201 POST /api/routes/
[I 2022-03-02 11:43:45.228 JupyterHub app:3150] JupyterHub is now running at https://10.9.106.227:8083/
[I 2022-03-02 11:43:50.437 JupyterHub samlauthenticator:806] Starting SP-initiated SAML Login
[I 2022-03-02 11:43:50.445 JupyterHub log:189] 302 GET /hub/login?next=%2Fhub%2Fapi%2Foauth2%2Fauthorize%3Fclient_id%3Djupyterhub-user-291624%26redirect_uri%3D%252Fuser%252F291624%252Foauth_callback%26response_type%3Dcode%26state%3DeyJ1dWlkIjogImNiMGJjOWNhOWIxNTQ3YzVhMGU0MzY4NTdhMWI4YjE2IiwgIm5leHRfdXJsIjogIi91c2VyLzI5MTYyNC9sYWI_In0 → Loading... (@10.0.95.203) 13.67ms
11:48:45.236 [ConfigProxy] ESC[32minfoESC[39m: 200 GET /api/routes
[I 2022-03-02 11:52:08.128 JupyterHub samlauthenticator:806] Starting SP-initiated SAML Login
[I 2022-03-02 11:52:08.131 JupyterHub log:189] 302 GET /hub/login → Loading... (@10.0.95.203) 3.27ms
11:53:45.237 [ConfigProxy] ESC[32minfoESC[39m: 200 GET /api/routes
11:58:45.235 [ConfigProxy] ESC[32minfoESC[39m: 200 GET /api/routes
(END)

@ sameergithub5 - Could you share if this is resolved… we too facing similar issue.