def check_authorized
      if state == :expired
        raise Exceptions::RetryableError, "Authorization expired"
      elsif state != :authorized
        raise Exceptions::Unauthorized, "Not authorized with RightScale" if state != :authorized
      end
      true
    end
def check_authorized
      if state == :expired
        raise Exceptions::RetryableError, "Authorization expired"
      elsif state != :authorized
        raise Exceptions::Unauthorized, "Not authorized with RightScale" if state != :authorized
      end
      true
    end
Check whether authorized

 @return [TrueClass] always true if don't raise exception

 @raise [Exceptions::Unauthorized] not authorized
 @raise [Exceptions::RetryableError] authorization expired, but retry may succeed