Forum Discussion

velteo's avatar
velteo
Contributor
13 years ago

Authentication failing

Hi All,

 

I have been having problems trying to authenticate passing my username and password. The following URL 

/restapi/vc/authentication/sessions/login?user.login=MyUSer&user.password=MyPassword

 

returns

 

<response status="error">
    <error code="100">
        <message>
            user.login: You do not have permissions to switch to this user
        </message>
    </error>
</response>

 

I am not logged as when I try

/restapi/vc/authentication/sessions/current/user

or 

/restapi/vc/solutions/recent?page=1&page_size=10&restapi.response_style=view

I get (broken lines for readability)

<response status="error">
    <error code="303">
        <message>
             UserRef[id=-1] does not have access to RequiredPermissions[(allow_restapi_call_read)] on      
                 CommunityByDisplayIdRef[
                 nodeType=StandardNodeType[
                 nodeType=lithium.coreapi.community.ICommunity,entityTypeKey=EntityTypeKey[community],
                 entityTypeUid=4,hashCode=999999999],displayId=xxxxx]
        </message>
    </error>
</response>
Any suggestion?
Thanks
Celso
No RepliesBe the first to reply