Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to set basic auth on headers in oozie workflow callback url.

avatar
New Contributor

oozie.wf.workflow.notification.url=http://yourserver.com/some/path/

In oozie job.properties we can include this property to get workflow notification. In our use case we have the callback url (rest service) which requires basic auth. Is it possible to set basic auth in the header when oozie calls back this url ? If so can you point me to the documentation. Thanks.

1 ACCEPTED SOLUTION

avatar
Guru

Hello @Vikram,

I looked into Oozie workflow spefification here and source code here to check how this URL is handled. As mentioned in the documentation, Oozie just makes a get request to "oozie.wf.workflow.notification.url" URL. This means, as long as you can specify a fully qualified URL with required basic authentication info (maybe via query-string and token), Oozie should be able to deliver that.

Hope this helps.

View solution in original post

3 REPLIES 3

avatar
Guru

Hello @Vikram,

I looked into Oozie workflow spefification here and source code here to check how this URL is handled. As mentioned in the documentation, Oozie just makes a get request to "oozie.wf.workflow.notification.url" URL. This means, as long as you can specify a fully qualified URL with required basic authentication info (maybe via query-string and token), Oozie should be able to deliver that.

Hope this helps.

avatar
Master Guru

Customer confirmed that this worked.

avatar
New Contributor

I am using this oozie.wf.workflow.notification.url property but I am facing an issue :

https://myknoxurl:8443/gateway/default/myproject/services/job/?user.name=tejwinder_singh

I am using knox to connect to remote tomcat (which will capture oozie's statuses)

How do I add my password to the URL ? Or Is there a better solution to do this via Knox ?