cancel
Showing results for 
Search instead for 
Did you mean: 

makeRequest method authorization types

sreekanthreddy_marella
Product and Topic Expert
Product and Topic Expert
0 Kudos
126

Hi,

params[com.streamwork.io.RequestParameters.AUTHORIZATION] = com.streamwork.io.AuthorizationType.BASIC;

I want to know what all values are valid for com.streamwork.io.RequestParameters.AUTHORIZATION parameter? what happens when this parameter is not included in the params list and makeRequest call is made.

The reason I am asking is because even if i don't include this param (AUTHORIZATION), the basic authentication kicks in and the request header is set even though we dont include USER and PASSWORD parameters. Is there a way to not set the authorization at all so that when the call is made, I can kick in the authentication by myself.

Please let me know if you need any more information.

Regards

Sreekanth

View Entire Topic
bonnie_cheng
Member
0 Kudos

The AUTHORIZATION parameter can currently take two values:

streamwork.io.AuthorizationType.NONE

streamwork.io.AuthorizationType.BASIC

Not setting the parameter should be the same as setting it to NONE.

Bonnie