- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to set basic auth on headers in oozie workflow callback url.
- Labels:
-
Apache Oozie
Created ‎12-01-2016 06:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-03-2016 02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-03-2016 02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-09-2016 09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Customer confirmed that this worked.
Created ‎01-27-2017 06:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
