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

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

            return(token);
        }