NetTalk Central

Author Topic: Report Security?  (Read 4187 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Report Security?
« on: January 04, 2020, 04:59:49 PM »
is possible to add security to a report for prevent a direct call?  like a browse and form that have user must be logged in

ex: mysite/callmyreport

thanks..

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Report Security?
« Reply #1 on: January 05, 2020, 10:42:42 PM »
yes,
noted.
that's an oversight - I'll sort it out.

cheers
Bruce

TimR

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Report Security?
« Reply #2 on: January 10, 2020, 12:55:47 PM »
I created a little template to handle this. It assumes a NetWebServerWorker called p_web is present, I usually pass this into the procedure anyway, it's not perfect but works, feel free to use/modify as you like.

#TEMPLATE(MyTemplate,'My Templates'),FAMILY('ABC')
#EXTENSION(ReportLoginRequired,'Require Login for Nettalk Reports')
#AT(%AdditionalDebugHooks),PRIORITY(1000)
  If p_web.GetSessionLoggedIn() = 0
    p_web.SendError (401,'Unauthorized', 'A login is required to view this page')
    Return
  End
#ENDAT

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Report Security?
« Reply #3 on: February 03, 2020, 05:13:58 PM »
Bruce, any news for this..

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Report Security?
« Reply #4 on: February 10, 2020, 11:06:15 PM »
Added for 11.30