I'm trying to run a scheduled job using the API on a windows server but since the instance of VersionOne I am trying to connect to is configured to use Windows Integrated Authentication it is trying to connect as the server windows user, which of course is not a member on VersionOne. I supplied the windows user name and password of a valid VersionOne member but it seems to ignore it and continues to give me a security exception "com.versionone.apiclient.SecurityException: User Not Authorized".
I get the security exception with either one:
V1APIConnector dataConnector = new V1APIConnector(url, userName, password); V1Instance v1 = new V1Instance(applicationPath, userName, password);
There are basically two approaches, one using the credentials of the user that is currently logged in, the other using their fully qualified domain name.
Have you tried those?
Acey Bunch
Technical Product and Agile Consultant
VersionOne
From: versionone-dev@googlegroups.com [mailto:versionone-dev@googlegroups.com] On Behalf Of Eric
Sent: Wednesday, June 20, 2012 3:51 PM
To: versionone-dev@googlegroups.com
Subject: Can a different user name/password be supplied with the API connection when VersionOne is set to use Windows Integrated Authentication?
I'm trying to run a scheduled job using the API on a windows server but since the instance of VersionOne I am trying to connect to is configured to use Windows Integrated Authentication it is trying to connect as the server windows user, which of course is not a member on VersionOne. I supplied the windows user name and password of a valid VersionOne member but it seems to ignore it and continues to give me a security exception "com.versionone.apiclient.SecurityException: User Not Authorized".
I get the security exception with either one:
V1APIConnector dataConnector = new V1APIConnector(url, userName, password);
V1Instance v1 = new V1Instance(applicationPath, userName, password);
--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/versionone-dev/-/kRhjIfoBJ3oJ.
To post to this group, send email to versionone-dev@googlegroups.com<mailto:versionone-dev@googlegroups.com>.
To unsubscribe from this group, send email to versionone-dev+unsubscribe@googlegroups.com<mailto:versionone-dev+unsubscri be@googlegroups.com>.
For more options, visit this group at http://groups.google.com/group/versionone-dev?hl=en.
Yes, I have attempted to try that. But their documentation seems to be out of date. I downloaded the latest jars and the V1APIConnector doesn't even have a constructor with a signature for supplying a boolean to indicate to use windows authentication or not. I have supplied a fully qualified username and password and it still attempts to connect as the user that is logged into windows.
> There are basically two approaches, one using the credentials of the user > that is currently logged in, the other using their fully qualified domain > name.
> Have you tried those?
> Acey Bunch
> Technical Product and Agile Consultant
> VersionOne
> *From:* versionone-dev@googlegroups.com [mailto: > versionone-dev@googlegroups.com] *On Behalf Of *Eric > *Sent:* Wednesday, June 20, 2012 3:51 PM > *To:* versionone-dev@googlegroups.com > *Subject:* Can a different user name/password be supplied with the API > connection when VersionOne is set to use Windows Integrated Authentication?
> I'm trying to run a scheduled job using the API on a windows server but > since the instance of VersionOne I am trying to connect to is configured to > use Windows Integrated Authentication it is trying to connect as the server > windows user, which of course is not a member on VersionOne. I supplied > the windows user name and password of a valid VersionOne member but it > seems to ignore it and continues to give me a security exception > "com.versionone.apiclient.SecurityException: User Not Authorized".
> I get the security exception with either one:
> V1APIConnector dataConnector = new V1APIConnector(url, userName, password); > V1Instance v1 = new V1Instance(applicationPath, userName, password);
> -- > You received this message because you are subscribed to the Google Groups > "VersionOne-dev" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/versionone-dev/-/kRhjIfoBJ3oJ. > To post to this group, send email to versionone-dev@googlegroups.com. > To unsubscribe from this group, send email to > versionone-dev+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/versionone-dev?hl=en.
On Thursday, June 21, 2012 8:44:58 AM UTC-4, Eric wrote:
> Yes, I have attempted to try that. But their documentation seems to be > out of date. I downloaded the latest jars and the V1APIConnector doesn't > even have a constructor with a signature for supplying a boolean to > indicate to use windows authentication or not. I have supplied a fully > qualified username and password and it still attempts to connect as the > user that is logged into windows.
> On Thursday, June 21, 2012 7:37:10 AM UTC-5, Acey wrote:
>> There are basically two approaches, one using the credentials of the user >> that is currently logged in, the other using their fully qualified domain >> name.
>> Have you tried those?
>> Acey Bunch
>> Technical Product and Agile Consultant
>> VersionOne
>> *From:* versionone-dev@googlegroups.com [mailto: >> versionone-dev@googlegroups.com] *On Behalf Of *Eric >> *Sent:* Wednesday, June 20, 2012 3:51 PM >> *To:* versionone-dev@googlegroups.com >> *Subject:* Can a different user name/password be supplied with the API >> connection when VersionOne is set to use Windows Integrated Authentication?
>> I'm trying to run a scheduled job using the API on a windows server but >> since the instance of VersionOne I am trying to connect to is configured to >> use Windows Integrated Authentication it is trying to connect as the server >> windows user, which of course is not a member on VersionOne. I supplied >> the windows user name and password of a valid VersionOne member but it >> seems to ignore it and continues to give me a security exception >> "com.versionone.apiclient.SecurityException: User Not Authorized".
>> I get the security exception with either one:
>> V1APIConnector dataConnector = new V1APIConnector(url, userName, >> password); >> V1Instance v1 = new V1Instance(applicationPath, userName, password);
>> -- >> You received this message because you are subscribed to the Google Groups >> "VersionOne-dev" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/versionone-dev/-/kRhjIfoBJ3oJ. >> To post to this group, send email to versionone-dev@googlegroups.com. >> To unsubscribe from this group, send email to >> versionone-dev+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/versionone-dev?hl=en.