AnsweredAssumed Answered

Is there a way to detect if a feature service is secured?

Question asked by azatrain on Apr 25, 2017

I was wondering if there was a method to determine if a feature service was secured before attempting to use it?  I looked through the API docs and didn't see any properties or methods that would give me that information.  I suppose I could attempt to access the service without credentials and if it fails with a token required error or something similar I could assume it was secured, but was looking for something a little more direct.  Thanks in advance for the help ...