Passing Kerberos Credentials in PDFKIT python pdf generator tool

78 views Asked by At

I have a URL which requires Kerberos Credentials (single sign on) for Authentication. I need to generate PDF of this URL response webpage. but when i am trying using pdfkit i am getting authentication error. Can anyone please provide the necessary headers need to be set.

import pdfkit

options = {
    'custom-header':  [('WWW-Authenticate:', 'negotiate')]
}


pdfkit.from_url(
    'URL-link',
    'shaurya.pdf', options=options)

0

There are 0 answers