I don't remember the RFW API scripts well but SAS, in general, supports 3 authentication mechanisms
Credentials - username and password
OTPs - one time passwords
Tickets - You start with ticket-granting ticket and use it to get service ticket for each individual request.
See if this distinction helps you. This thread is old so I am guessing that the issue is already resolved.
... View more