static SEIDWorkingMode GetWorkingMode(CredentialsResponse.TokenType tokenType) { if (tokenType == CredentialsResponse.TokenType.Bearer) { return(SEIDWorkingMode.SSOWorkingMode); } return(SEIDWorkingMode.LDAPWorkingMode); }
static string GetPassword( string token, CredentialsResponse.TokenType tokenType) { if (tokenType == CredentialsResponse.TokenType.Bearer) { return(BEARER_PREFIX + token); } return(token); }