Home Home
  login

Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Unable to authenticate

api

I am having trouble authenticating against the new REST Webservice API. We recently upgraded to version 3.5.3

Following is a code snipit.

msmProxyManager = new CounterSoft.Gemini.WebServices.ServiceManager("http://gemini", "", "", "", true);
try
{
    UserEN user = m
smProxyManager.UsersService.WhoAmI();
    if (user.UserID > 0)
    {
        DialogResult = DialogResult.OK;
        Close();
        return;
    }
}
catch(Exception ex)
{
     MessageBox.Show(ex.Message);
}

We are now using windows authentication (a change we made when we upgraded).
I am getting a  "Method requires authentication" error on calling "WhoAmI". We have the anonymous user turned on in IIS. If this is turned off the "WhoAmI" returns an empty user (userID= -1), but we are also using the gemini scheduler and turning off anonymous access stops it from working.
Any one having this experience? How can I get the REST API to work with windows authentication?

Cward
· 1
Cward
Replies (4)
helpful
0
not helpful

You need to send in the username. Also, how does the scheduler service authenticates? Seems like using forms auth. Is the Service running under a named user account?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Please implement the changes recommended in this Microsoft KB Article and then disable anonymous access in IIS."


Bikram
· 1
Bikram
helpful
0
not helpful

Thanks Bikram and MarkWing. It was a combination of your two responses that has got it working.
Thanks guys.


Cward
· 1
Cward
helpful
0
not helpful

You are welcome!


Bikram
· 1
Bikram