NetTalk Central

Author Topic: WebService Security??  (Read 3083 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 677
    • View Profile
    • Email
WebService Security??
« on: March 21, 2015, 01:37:55 PM »
somebody have a good sample for add security to a webservice and if fail return error.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: WebService Security??
« Reply #1 on: March 22, 2015, 09:50:11 PM »
I'm doing a webinar on this soon.
Cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 677
    • View Profile
    • Email
Re: WebService Security??
« Reply #2 on: April 20, 2015, 04:34:40 PM »
any tips for this?? i have important project that required this feature and don't idea how for implement this security in webservice..

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: WebService Security??
« Reply #3 on: April 21, 2015, 03:00:25 AM »
Hi Osa,

there are a few different strategies you could take, this is one which is probably one of the easier ones;

a) create a Login method, takes 2 parameters, login and password.
b) process the login as for a web app - ie do lookups or whatever and set the session values as you wish.
c) call p_web.ValidateLogin(true) to set the session as "logged in".

then the client has to
a) call this method to login
b) make sure they set the SessionID Cookie when making subsequent requests.

cheers
Bruce


osquiabro

  • Hero Member
  • *****
  • Posts: 677
    • View Profile
    • Email
Re: WebService Security??
« Reply #4 on: April 21, 2015, 03:26:51 PM »
don't understand nothing, i need to pass user name and password and then validate user if valid return a web service call with parameter is failed return error with xml format?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: WebService Security??
« Reply #5 on: April 22, 2015, 05:44:17 AM »
Hi Osa,

I think maybe your best option is to come to the User Group webinar on Wednesday and we can walk through the process with you. Please make sure you have a headset though if at all possible.

cheers
Bruce

update -- see Webinar #62 around the 0:25 mark
http://www.capesoft.com/accessories/NetTalkUserGroup.htm
« Last Edit: April 24, 2015, 05:45:46 AM by Bruce »

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: WebService Security??
« Reply #6 on: April 22, 2015, 07:58:47 AM »
osquiabro, check your inbox.

Cheers @ Ura