- Removed URL based token auth for iCal feature.
- Enabled http basic auth fallback auth.
This commit is contained in:
parent
e183dc4fa9
commit
4c94c8518a
2 changed files with 6 additions and 6 deletions
|
@ -3,9 +3,9 @@
|
||||||
require 'icalendar'
|
require 'icalendar'
|
||||||
|
|
||||||
class IcalTicketsController < ApplicationController
|
class IcalTicketsController < ApplicationController
|
||||||
before_action { authentication_check_action_token 'iCal' }
|
before_action { authentication_check( { basic_auth_promt: true } ) }
|
||||||
|
|
||||||
# @path [GET] /ical/tickets_all/:action_token
|
# @path [GET] /ical/tickets/:action_token
|
||||||
#
|
#
|
||||||
# @summary Returns an iCal file with all tickets (open, new, pending, esclation) as events.
|
# @summary Returns an iCal file with all tickets (open, new, pending, esclation) as events.
|
||||||
#
|
#
|
||||||
|
|
|
@ -2,8 +2,8 @@ Zammad::Application.routes.draw do
|
||||||
api_path = Rails.configuration.api_path
|
api_path = Rails.configuration.api_path
|
||||||
|
|
||||||
# ical ticket
|
# ical ticket
|
||||||
match api_path + '/ical/tickets/:action_token', to: 'ical_tickets#all', via: :get
|
match api_path + '/ical/tickets', to: 'ical_tickets#all', via: :get
|
||||||
match api_path + '/ical/tickets_new_open/:action_token', to: 'ical_tickets#new_open', via: :get
|
match api_path + '/ical/tickets_new_open', to: 'ical_tickets#new_open', via: :get
|
||||||
match api_path + '/ical/tickets_pending/:action_token', to: 'ical_tickets#pending', via: :get
|
match api_path + '/ical/tickets_pending', to: 'ical_tickets#pending', via: :get
|
||||||
match api_path + '/ical/tickets_escalation/:action_token', to: 'ical_tickets#escalation', via: :get
|
match api_path + '/ical/tickets_escalation', to: 'ical_tickets#escalation', via: :get
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue