Example #1
0
            static SEIDWorkingMode GetWorkingMode(CredentialsResponse.TokenType tokenType)
            {
                if (tokenType == CredentialsResponse.TokenType.Bearer)
                {
                    return(SEIDWorkingMode.SSOWorkingMode);
                }

                return(SEIDWorkingMode.LDAPWorkingMode);
            }
Example #2
0
        static string GetPassword(
            string token,
            CredentialsResponse.TokenType tokenType)
        {
            if (tokenType == CredentialsResponse.TokenType.Bearer)
            {
                return(BEARER_PREFIX + token);
            }

            return(token);
        }